[Bug c++/31516] ICE on nested templates
reichelt at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Tue Apr 10 00:23:00 GMT 2007
------- Comment #2 from reichelt at gcc dot gnu dot org 2007-04-10 01:22 -------
Well, it crashes for me:
GCC 2.95.3:
PR31516.cc: In method `A<{anon}>::B<{anon}>::foo()::C::C()':
PR31516.cc:7: ../../../gcc-2.95.3/gcc/cp/pt.c:2493: Expect 't', have
'function_decl'
GCC 3.0.4:
PR31516.cc: In member function `void A<<anonymous> >::B<<anonymous> >::foo()':
PR31516.cc:7: Tree check: expected class 't', have 'd' (function_decl) in
push_template_decl_real, at cp/pt.c:2687
Please submit a full bug report, [etc.]
GCC 3.2.3:
PR31516.cc: In member function `void A<<anonymous> >::B<<anonymous> >::foo()':
PR31516.cc:7: tree check: expected class 't', have 'd' (function_decl) in
push_template_decl_real, at cp/pt.c:2776
Please submit a full bug report, [etc.]
GCC 3.3.6:
PR31516.cc: In member function `void A<<anonymous> >::B<<anonymous> >::foo()':
PR31516.cc:7: internal compiler error: tree check: expected class 't', have 'd'
(function_decl) in push_template_decl_real, at cp/pt.c:2897
Please submit a full bug report, [etc.]
Maybe you don't have checking enabled for the release versions?
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-checking
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=31516
More information about the Gcc-bugs
mailing list