[Bug c++/84609] New: internal compiler error: in cp_parser_abort_tentative_parse, at cp/parser.c:28960
vegard.nossum at gmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Feb 28 08:34:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84609
Bug ID: 84609
Summary: internal compiler error: in
cp_parser_abort_tentative_parse, at cp/parser.c:28960
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vegard.nossum at gmail dot com
Target Milestone: ---
Input:
struct s {
int a __attribute__((aligned([](char *) {})));
};
Output:
$ xgcc -x c++ -std=c++14 -O3 -Wall -fpermissive -c -
<stdin>:2:47: internal compiler error: in cp_parser_abort_tentative_parse, at
cp/parser.c:28960
0xe87f54 cp_parser_abort_tentative_parse
/home/vegard/git/gcc/gcc/cp/parser.c:28959
0xfdb287 cp_parser_member_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:23597
0xf10d9b cp_parser_member_specification_opt
/home/vegard/git/gcc/gcc/cp/parser.c:23308
0xf10d9b cp_parser_class_specifier_1
/home/vegard/git/gcc/gcc/cp/parser.c:22450
0xf1fcbb cp_parser_class_specifier
/home/vegard/git/gcc/gcc/cp/parser.c:22702
0xf1fcbb cp_parser_type_specifier
/home/vegard/git/gcc/gcc/cp/parser.c:16708
0xf8520a cp_parser_decl_specifier_seq
/home/vegard/git/gcc/gcc/cp/parser.c:13573
0xfa0d60 cp_parser_simple_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:12882
0xfa8c88 cp_parser_block_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:12827
0xffb8d5 cp_parser_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:12724
0xff298b cp_parser_declaration_seq_opt
/home/vegard/git/gcc/gcc/cp/parser.c:12600
0xff3fb3 cp_parser_translation_unit
/home/vegard/git/gcc/gcc/cp/parser.c:4559
0xff3fb3 c_parse_file()
/home/vegard/git/gcc/gcc/cp/parser.c:38820
0x15a0525 c_common_parse_file()
/home/vegard/git/gcc/gcc/c-family/c-opts.c:1132
Version:
xgcc (GCC) 8.0.1 20180204 (experimental)
built from git fdae6180ad24fa6303fa046114f3e4b66b8db34d
Version 7.3.0 don't seem to be affected AFAICS.
Test case was reduced by C-Reduce.
It looks related to bug #84606 to me because of the lambda-inside-attribute,
but the stack trace is completely different.
More information about the Gcc-bugs
mailing list