-
- Downloads
re PR c++/11131 (Unrelated declaration removes inline flag from function)
PR c++/11131 * tree-inline.c (inlinable_function_p): Call the language-specific hook early. PR c++/11131 * cp-tree.h (template_for_substitution): Declare. * decl2.c (mark_used): Use it when figuring out whether or not a function is inline. * pt.c (template_for_substitution): Give it external linkage. * tree.c (cp_cannot_inline_tree_fn): Instantiate as early as possible. PR c++/11131 * g++.dg/opt/template1.C: New test. From-SVN: r67698
Showing
- gcc/ChangeLog 6 additions, 0 deletionsgcc/ChangeLog
- gcc/cp/ChangeLog 10 additions, 0 deletionsgcc/cp/ChangeLog
- gcc/cp/cp-tree.h 1 addition, 0 deletionsgcc/cp/cp-tree.h
- gcc/cp/decl2.c 3 additions, 1 deletiongcc/cp/decl2.c
- gcc/cp/pt.c 1 addition, 2 deletionsgcc/cp/pt.c
- gcc/cp/tree.c 7 additions, 4 deletionsgcc/cp/tree.c
- gcc/testsuite/ChangeLog 5 additions, 0 deletionsgcc/testsuite/ChangeLog
- gcc/testsuite/g++.dg/opt/template1.C 19 additions, 0 deletionsgcc/testsuite/g++.dg/opt/template1.C
- gcc/tree-inline.c 10 additions, 17 deletionsgcc/tree-inline.c
Loading
Please register or sign in to comment