-
- Downloads
re PR c++/22252 (pragma interface/implementation still break synthesized methods)
PR c++/22252 * decl.c (start_preparsed_function): Do not pay attention to #pragma interface for implicitly-defined methods. * decl2.c (cp_finish_file): Do not complain about uses of inline functions that have bodies, even if we decided not to emit the body in this translation unit. * semantics.c (note_decl_for_pch): Do not mess with linkage. (expand_or_defer_fn): Make inline, non-template functions COMDAT at this point. PR c++/22252 * g++.dg/ext/interface1.C: New test. * g++.dg/ext/interface1.h: Likewise. * g++.dg/ext/interface1a.cc: Likewise. From-SVN: r104103
Showing
- gcc/cp/ChangeLog 12 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/decl.c 12 additions, 4 deletionsgcc/cp/decl.c
- gcc/cp/decl2.c 18 additions, 15 deletionsgcc/cp/decl2.c
- gcc/cp/pt.c 1 addition, 1 deletiongcc/cp/pt.c
- gcc/cp/semantics.c 18 additions, 15 deletionsgcc/cp/semantics.c
- gcc/testsuite/ChangeLog 7 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/ext/interface1.C 7 additions, 0 deletionsgcc/testsuite/g++.dg/ext/interface1.C
- gcc/testsuite/g++.dg/ext/interface1.h 10 additions, 0 deletionsgcc/testsuite/g++.dg/ext/interface1.h
- gcc/testsuite/g++.dg/ext/interface1a.cc 4 additions, 0 deletionsgcc/testsuite/g++.dg/ext/interface1a.cc
Loading
Please register or sign in to comment