This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2006 13:47:06 -0000
- Subject: [Bug tree-optimization/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
- References: <bug-28058-87@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from jakub at gcc dot gnu dot org 2006-06-16 13:47 -------
The problem seems to be that cp_cannot_inline_tree_fn changes *fnp to
whatever instantiate_decl returned and that function has not been lowered yet.
Not sure if it is at all possible to cgraph_lower_function from within
inlinable_function_p (i.e. if cgraph_analyze_function is reentrant) and if yes,
if that's supposed to be cp_cannot_inline_tree_fn's responsibility.
In any case, the testcase works if foo is moved to the end of the file, at
which
point the template is already lowered.
--
jakub at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu dot
| |org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058