http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46564

Andreas Beckmann <gcc at abeckmann dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |gcc at abeckmann dot de

--- Comment #2 from Andreas Beckmann <gcc at abeckmann dot de> 2010-12-08 
20:54:25 UTC ---
Another testcase without nesting problems, but using invalid code instead:

===== 8< =====
constexpr
pair
(
pair
===== >8 =====

$ g++-trunk -c -std=c++0x ice-decl_constant_var_p.min.ii
ice-decl_constant_var_p.min.ii:4:1: error: ISO C++ forbids declaration of
‘pair’ with no type [-fpermissive]
ice-decl_constant_var_p.min.ii:4:1: internal compiler error: in
decl_constant_var_p, at cp/decl2.c:3563
Please submit a full bug report,

$ g++-4.5 -c -std=c++0x ice-decl_constant_var_p.min.ii
ice-decl_constant_var_p.min.ii:4:1: error: ISO C++ forbids declaration of
‘pair’ with no type
ice-decl_constant_var_p.min.ii:4:1: error: expected ‘)’ at end of input
ice-decl_constant_var_p.min.ii:4:1: error: expected ‘,’ or ‘;’ at end of input

Reply via email to