https://gcc.gnu.org/bugzilla/show_bug.cgi?id=94437

Giles Atkinson <gatk555 at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Known to fail|                            |9.3.0

--- Comment #6 from Giles Atkinson <gatk555 at gmail dot com> ---
Also confirmed in 9.3.0.  I only just saw Comment #5, as I was busy building
the newer compiler!

ga@oldell:~/gcc/avr/bin$ ./avr-g++ -c
~/Arduino/sketches/libraries/BUG/src/BUG.cpp
/home/ga/Arduino/sketches/libraries/BUG/src/BUG.cpp: In function ‘int
fetch_byte(FVM::code_P)’:
/home/ga/Arduino/sketches/libraries/BUG/src/BUG.cpp:16:31: internal compiler
error: in type_hash_canon, at tree.c:7072
   16 |   if (ip < (FVM::code_P) FVM::CODE_P_MAX)
      |                               ^~~~~~~~~~
0x58bbe3 type_hash_canon(unsigned int, tree_node*)
        ../../gcc-9.3.0/gcc/tree.c:7071
0x6f53da build_type_attribute_qual_variant(tree_node*, tree_node*, int)
        ../../gcc-9.3.0/gcc/attribs.c:1157
0x6f53da build_type_attribute_qual_variant(tree_node*, tree_node*, int)
        ../../gcc-9.3.0/gcc/attribs.c:1122
0x6e308f cp_build_binary_op(op_location_t const&, tree_code, tree_node*,
tree_node*, int)
        ../../gcc-9.3.0/gcc/cp/typeck.c:5233
0x5ac4b6 build_new_op_1
        ../../gcc-9.3.0/gcc/cp/call.c:6244
0x5acc5f build_new_op(op_location_t const&, tree_code, int, tree_node*,
tree_node*, tree_node*, tree_node**, int)
        ../../gcc-9.3.0/gcc/cp/call.c:6288
0x6db536 build_x_binary_op(op_location_t const&, tree_code, tree_node*,
tree_code, tree_node*, tree_code, tree_node**, int)
        ../../gcc-9.3.0/gcc/cp/typeck.c:4189
0x64e52c cp_parser_binary_expression
        ../../gcc-9.3.0/gcc/cp/parser.c:9624
0x64f129 cp_parser_assignment_expression
        ../../gcc-9.3.0/gcc/cp/parser.c:9759
0x64f492 cp_parser_expression
        ../../gcc-9.3.0/gcc/cp/parser.c:9926
0x673104 cp_parser_condition
        ../../gcc-9.3.0/gcc/cp/parser.c:12153
0x65d47f cp_parser_selection_statement
        ../../gcc-9.3.0/gcc/cp/parser.c:11808
0x65d47f cp_parser_statement
        ../../gcc-9.3.0/gcc/cp/parser.c:11186
0x65e410 cp_parser_statement_seq_opt
        ../../gcc-9.3.0/gcc/cp/parser.c:11667
0x65e4bf cp_parser_compound_statement
        ../../gcc-9.3.0/gcc/cp/parser.c:11621
0x67299a cp_parser_function_body
        ../../gcc-9.3.0/gcc/cp/parser.c:22703
0x67299a cp_parser_ctor_initializer_opt_and_function_body
        ../../gcc-9.3.0/gcc/cp/parser.c:22754
0x675186 cp_parser_function_definition_after_declarator
        ../../gcc-9.3.0/gcc/cp/parser.c:27883
0x675e78 cp_parser_function_definition_from_specifiers_and_declarator
        ../../gcc-9.3.0/gcc/cp/parser.c:27799
0x675e78 cp_parser_init_declarator
        ../../gcc-9.3.0/gcc/cp/parser.c:20328
Please submit a full bug report,


ga@oldell:~/gcc/avr/bin$ ./avr-g++ -v
Using built-in specs.
Reading specs from /home/ga/gcc/avr/lib/gcc/avr/9.3.0/device-specs/specs-avr2
COLLECT_GCC=./avr-g++
COLLECT_LTO_WRAPPER=/home/ga/gcc/avr/libexec/gcc/avr/9.3.0/lto-wrapper
Target: avr
Configured with: ../gcc-9.3.0/configure --target=avr --prefix=/home/ga/gcc/avr
--host=x86_64-pc-linux-gnu
Thread model: single
gcc version 9.3.0 (GCC)

Reply via email to