[Bug c++/83814] [8 Regression] ICE: in fold_binary_loc, at fold-const.c:9733
trippels at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Jan 12 12:00:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83814
Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |ice-on-valid-code
Priority|P3 |P1
Component|rtl-optimization |c++
Target Milestone|--- |8.0
--- Comment #2 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
% cat read_graphviz_new.ii
template <class> void *a{__builtin_memset(0, 0, int() - char())};
% g++ -c read_graphviz_new.ii
read_graphviz_new.ii:1:63: internal compiler error: in fold_binary_loc, at
fold-const.c:9733
template <class> void *a{__builtin_memset(0, 0, int() - char())};
^
0x10838f8f fold_binary_loc(unsigned int, tree_code, tree_node*, tree_node*,
tree_node*)
../../gcc/gcc/fold-const.c:9733
0x1085b0c7 fold(tree_node*)
../../gcc/gcc/fold-const.c:11957
0x1026d17b cp_fold
../../gcc/gcc/cp/cp-gimplify.c:2279
0x1026f057 cp_fold_maybe_rvalue
../../gcc/gcc/cp/cp-gimplify.c:2005
0x1053a773 fold_for_warn(tree_node*)
../../gcc/gcc/c-family/c-common.c:878
0x105e0a8b warn_for_memset(unsigned int, tree_node*, tree_node*, int)
../../gcc/gcc/c-family/c-warn.c:1872
0x103ca8c7 cp_parser_postfix_expression
../../gcc/gcc/cp/parser.c:7182
0x103cb24f cp_parser_unary_expression
../../gcc/gcc/cp/parser.c:8281
0x103997f3 cp_parser_cast_expression
../../gcc/gcc/cp/parser.c:9049
0x1039a2c7 cp_parser_binary_expression
../../gcc/gcc/cp/parser.c:9150
0x1039c3af cp_parser_assignment_expression
../../gcc/gcc/cp/parser.c:9437
0x1039af57 cp_parser_constant_expression
../../gcc/gcc/cp/parser.c:9721
0x1039c2e7 cp_parser_initializer_clause
../../gcc/gcc/cp/parser.c:21840
0x1039b75f cp_parser_initializer_list
../../gcc/gcc/cp/parser.c:22109
0x1039b75f cp_parser_braced_list
../../gcc/gcc/cp/parser.c:21880
0x103a02bf cp_parser_initializer
../../gcc/gcc/cp/parser.c:21798
0x103d132b cp_parser_init_declarator
../../gcc/gcc/cp/parser.c:19599
0x103dc26b cp_parser_single_declaration
../../gcc/gcc/cp/parser.c:27091
0x103dc4df cp_parser_template_declaration_after_parameters
../../gcc/gcc/cp/parser.c:26693
0x103dd183 cp_parser_explicit_template_declaration
../../gcc/gcc/cp/parser.c:26930
More information about the Gcc-bugs
mailing list