[Bug c++/60391] New: [c++1y] ICE with auto parameter for operator""
reichelt at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sun Mar 2 21:36:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60391
Bug ID: 60391
Summary: [c++1y] ICE with auto parameter for operator""
Product: gcc
Version: 4.9.0
Status: UNCONFIRMED
Keywords: error-recovery, ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: reichelt at gcc dot gnu.org
CC: abutcher at gcc dot gnu.org
The following invalid code snippet (compiled with "-std=c++1y") triggers
an ICE on trunk:
===========================================
namespace N
{
int operator"" _X(auto) {}
}
namespace N {}
===========================================
bug.cc:3:25: error: 'int N::operator""_X(auto:1)' has invalid argument list
int operator"" _X(auto) {}
^
bug.cc:6:13: internal compiler error: in resume_scope, at cp/name-lookup.c:1656
namespace N {}
^
0x77fc2e resume_scope
../../gcc/gcc/cp/name-lookup.c:1656
0x78aa0c push_namespace(tree_node*)
../../gcc/gcc/cp/name-lookup.c:3717
0x6d9154 cp_parser_namespace_definition
../../gcc/gcc/cp/parser.c:15771
0x6da3b1 cp_parser_declaration
../../gcc/gcc/cp/parser.c:10971
0x6d8fa8 cp_parser_declaration_seq_opt
../../gcc/gcc/cp/parser.c:10869
0x6da85a cp_parser_translation_unit
../../gcc/gcc/cp/parser.c:4014
0x6da85a c_parse_file()
../../gcc/gcc/cp/parser.c:31595
0x7f9f53 c_common_parse_file()
../../gcc/gcc/c-family/c-opts.c:1060
Please submit a full bug report, [etc.]
Adam, you might want to have a look at that one, too.
More information about the Gcc-bugs
mailing list