[Bug c++/84976] New: internal compiler error: Segmentation fault (cp_build_modify_expr())
vegard.nossum at oracle dot com
gcc-bugzilla@gcc.gnu.org
Mon Mar 19 21:03:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84976
Bug ID: 84976
Summary: internal compiler error: Segmentation fault
(cp_build_modify_expr())
Product: gcc
Version: 8.0.1
Status: UNCONFIRMED
Keywords: ice-on-invalid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: vegard.nossum at oracle dot com
CC: webrown.cpp at gmail dot com
Target Milestone: ---
Input:
double b;
a(decltype(b = (b = auto)))
Output:
$ cc1plus
<stdin>:2:21: error: expected primary-expression before 'auto'
<stdin>:2:20: error: expected ')' before 'auto'
<stdin>:2:27: internal compiler error: Segmentation fault
0x3152ce9 crash_signal
/home/vegard/git/gcc/gcc/toplev.c:325
0x140c534 cp_build_modify_expr(unsigned int, tree_node*, tree_code, tree_node*,
int)
/home/vegard/git/gcc/gcc/cp/typeck.c:8108
0x14116b6 build_x_modify_expr(unsigned int, tree_node*, tree_code, tree_node*,
int)
/home/vegard/git/gcc/gcc/cp/typeck.c:8300
0xec6668 cp_parser_assignment_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9527
0xec87ea cp_parser_expression
/home/vegard/git/gcc/gcc/cp/parser.c:9655
0xf7afbe cp_parser_decltype_expr
/home/vegard/git/gcc/gcc/cp/parser.c:14061
0xf7afbe cp_parser_decltype
/home/vegard/git/gcc/gcc/cp/parser.c:14135
0xf2db37 cp_parser_simple_type_specifier
/home/vegard/git/gcc/gcc/cp/parser.c:17065
0xf22abd cp_parser_type_specifier
/home/vegard/git/gcc/gcc/cp/parser.c:16852
0xf8858a cp_parser_decl_specifier_seq
/home/vegard/git/gcc/gcc/cp/parser.c:13629
0xfb6b9d cp_parser_parameter_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:21506
0xfb94ea cp_parser_parameter_declaration_list
/home/vegard/git/gcc/gcc/cp/parser.c:21318
0xfbc180 cp_parser_parameter_declaration_clause
/home/vegard/git/gcc/gcc/cp/parser.c:21239
0xf5883f cp_parser_direct_declarator
/home/vegard/git/gcc/gcc/cp/parser.c:19992
0xf9e4f8 cp_parser_declarator
/home/vegard/git/gcc/gcc/cp/parser.c:19866
0xf9e7ce cp_parser_init_declarator
/home/vegard/git/gcc/gcc/cp/parser.c:19392
0xfa57a7 cp_parser_simple_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:13065
0xfab998 cp_parser_block_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:12883
0xffead5 cp_parser_declaration
/home/vegard/git/gcc/gcc/cp/parser.c:12780
0xff5b8b cp_parser_declaration_seq_opt
/home/vegard/git/gcc/gcc/cp/parser.c:12656
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Version:
GNU C++14 (GCC) version 8.0.1 20180306 (experimental) (x86_64-pc-linux-gnu)
More information about the Gcc-bugs
mailing list