This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/28058] [4.1/4.2 regression] ICE in inline_forbidden_p



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]