[Bug c++/83716] New: tree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference

2018-01-06 Thread uruwi at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83716

Bug ID: 83716
   Summary: tree check: expected tree that contains ‘decl common’
structure, have ‘identifier_node’ in
get_inner_reference
   Product: gcc
   Version: 8.0
Status: UNCONFIRMED
  Severity: normal
  Priority: P3
 Component: c++
  Assignee: unassigned at gcc dot gnu.org
  Reporter: uruwi at protonmail dot com
  Target Milestone: ---

GCC version: 8.0.0 20180106
System: GNU/Linux x64 (kernel version: 4.13.0-17)
Options used when GCC was configured or built: none in particular
Flags: -g -std=c++17 -Wall -Wpedantic -Wextra -Werror -fno-builtin -O0 -g
Output:

In file included from /usr/include/boost/asio/read_until.hpp:921:0,
 from /usr/include/boost/asio.hpp:91,
 from /home/uruwi/vane/Vane/main.cpp:8:
/usr/include/boost/asio/impl/read_until.hpp: In constructor
‘boost::asio::detail::read_until_delim_string_op::read_until_delim_string_op(boost::asio::detail::read_until_delim_string_op&&)’:
/usr/include/boost/asio/impl/read_until.hpp:551:62: internal compiler error:
tree check: expected tree that contains ‘decl common’ structure, have
‘identifier_node’ in get_inner_reference, at expr.c:7002
 delim_(BOOST_ASIO_MOVE_CAST(std::string)(other.delim_)),
  ^
0x67e9b5 tree_contains_struct_check_failed(tree_node const*,
tree_node_structure_enum, char const*, int, char const*)
../../gcc-latest/gcc/tree.c:9268
0xb32778 contains_struct_check(tree_node*, tree_node_structure_enum, char
const*, int, char const*)
../../gcc-latest/gcc/tree.h:3202
0xb32778 get_inner_reference(tree_node*, long*, long*, tree_node**,
machine_mode*, int*, int*, int*)
../../gcc-latest/gcc/expr.c:7002
0xb79a4b fold_unary_loc(unsigned int, tree_code, tree_node*, tree_node*)
../../gcc-latest/gcc/fold-const.c:7695
0xb7ae89 fold_build1_loc(unsigned int, tree_code, tree_node*, tree_node*)
../../gcc-latest/gcc/fold-const.c:12068
0x758b4c cp_fold_convert(tree_node*, tree_node*)
../../gcc-latest/gcc/cp/cvt.c:607
0x934665 build_static_cast_1
../../gcc-latest/gcc/cp/typeck.c:6856
0x934da4 build_static_cast(tree_node*, tree_node*, int)
../../gcc-latest/gcc/cp/typeck.c:7078
0x8496cc cp_parser_postfix_expression
../../gcc-latest/gcc/cp/parser.c:6696
0x84c1ea cp_parser_unary_expression
../../gcc-latest/gcc/cp/parser.c:8363
0x8294b6 cp_parser_cast_expression
../../gcc-latest/gcc/cp/parser.c:9131
0x829d27 cp_parser_binary_expression
../../gcc-latest/gcc/cp/parser.c:9232
0x82b704 cp_parser_assignment_expression
../../gcc-latest/gcc/cp/parser.c:9519
0x82dad6 cp_parser_parenthesized_expression_list
../../gcc-latest/gcc/cp/parser.c:7822
0x84ff98 cp_parser_mem_initializer
../../gcc-latest/gcc/cp/parser.c:14548
0x84ff98 cp_parser_mem_initializer_list
../../gcc-latest/gcc/cp/parser.c:14434
0x84ff98 cp_parser_ctor_initializer_opt
../../gcc-latest/gcc/cp/parser.c:14405
0x84ff98 cp_parser_ctor_initializer_opt_and_function_body
../../gcc-latest/gcc/cp/parser.c:21859
0x852926 cp_parser_function_definition_after_declarator
../../gcc-latest/gcc/cp/parser.c:26765
0x853b7c cp_parser_late_parsing_for_member
../../gcc-latest/gcc/cp/parser.c:27645
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.

Preprocessed source: attached

[Bug c++/83716] tree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference

2018-01-06 Thread uruwi at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83716

--- Comment #1 from uruwi at protonmail dot com ---
Created attachment 43051
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=43051&action=edit
Preprocessed file (gzipped)

[Bug c++/83716] tree check: expected tree that contains ‘decl common’ structure, have ‘identifier_node’ in get_inner_reference

2018-01-08 Thread uruwi at protonmail dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=83716

--- Comment #3 from uruwi at protonmail dot com ---
Confirmed that running g++ on the preprocessed file produces the assertion
failure instead.