• mmitchel's avatar
    PR c++/11131 · 3c5d9204
    mmitchel authored
    	* 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.
    
    
    git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@67698 138bc75d-0d04-0410-961f-82ee72b054a4
    3c5d9204
tree.c 69.6 KB