https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84642
Bug ID: 84642
Summary: internal compiler error: Segmentation fault
(tree_check()/synthesize_implicit_template_parm())
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:
a(int(const &&__attribute__((b(auto;)))))
Output:
<stdin>:1:36: internal compiler error: Segmentation fault
0x3150de9 crash_signal
/home/vegard/git/gcc/gcc/toplev.c:325
0xe88bdc tree_check(tree_node*, char const*, int, char const*, tree_code)
/home/vegard/git/gcc/gcc/tree.h:3131
0xe88bdc synthesize_implicit_template_parm
/home/vegard/git/gcc/gcc/cp/parser.c:39093
0xf3126d cp_parser_simple_type_specifier
/home/vegard/git/gcc/gcc/cp/parser.c:17021
0xf78c86 cp_parser_postfix_expression
/home/vegard/git/gcc/gcc/cp/parser.c:6947
0xf2cc47 cp_parser_unary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:8318
0xec1cba cp_parser_cast_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9086
0xec42e6 cp_parser_binary_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9187
0xec80ba cp_parser_assignment_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9482
0xed60f4 cp_parser_parenthesized_expression_list
/home/vegard/git/gcc/gcc/cp/parser.c:7760
0xed8bcb cp_parser_gnu_attribute_list
/home/vegard/git/gcc/gcc/cp/parser.c:25050
0xed8bcb cp_parser_gnu_attributes_opt
/home/vegard/git/gcc/gcc/cp/parser.c:24965
0xfb99d2 cp_parser_parameter_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:21559
0xfbc09a cp_parser_parameter_declaration_list
/home/vegard/git/gcc/gcc/cp/parser.c:21307
0xfbed30 cp_parser_parameter_declaration_clause
/home/vegard/git/gcc/gcc/cp/parser.c:21228
0xf5ad8f cp_parser_direct_declarator
/home/vegard/git/gcc/gcc/cp/parser.c:19981
0xf621c0 cp_parser_declarator
/home/vegard/git/gcc/gcc/cp/parser.c:19855
0xfb99c3 cp_parser_parameter_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:21555
0xfbc09a cp_parser_parameter_declaration_list
/home/vegard/git/gcc/gcc/cp/parser.c:21307
0xfbed30 cp_parser_parameter_declaration_clause
/home/vegard/git/gcc/gcc/cp/parser.c:21228
Seems potentially related to bug #84610?
$ xgcc --version
xgcc (GCC) 8.0.1 20180228 (experimental)
Built from git fd1990b25777e5f1307eac1447e8fb5fefe747b4 (r258063).
Seems to start crashing between 5.5.0 and 6.1.0.
Test case was reduced by C-Reduce.