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: "bangerth at dealii dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jun 2006 22:55:21 -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 #3 from bangerth at dealii dot org 2006-06-16 22:55 -------
The code is invalid, however: explicit specializations must be declared
before they are first used. In the snippet, B<A>::B is used in foo()
before the specialization is declared. The ICE consequently also goes
away if a declaration (not definition) of the specialization precedes foo().
That all doesn't make it any more forgivable that we ICE on this code,
however.
W.
--
bangerth at dealii dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-invalid-code
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28058