This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p
- From: "hubicka at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Jul 2006 20:36:03 -0000
- Subject: [Bug c++/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 #6 from hubicka at gcc dot gnu dot org 2006-07-21 20:36 -------
cgraph_analyze_function is reentrant for non-unit-at-a-time support. However
with unit-at-a-time, the analysis happens only after unit has been finalized
and at that time frontend is not supposed to come up with new functions
anymore. It would be a lot better to make C++ frontend to handle this case
early (probably diagnose the invalid code?), but I don't quite understand this
area of compiler, so if someone C++ aware would tell me it is dificult, we can
do it as workaround.
Honza
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058