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

            Bug ID: 120312
           Summary: internal compiler error: error reporting routines
                    re-entered. in build_array_type_1 since 4.7.1 until
                    trunk
           Product: gcc
           Version: 16.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mario.rodriguezb1 at um dot es
  Target Milestone: ---

ICEs when using after incorrectly using aligned.

```
#include <iostream>
int main(void) {
   void *__attribute__((aligned(1024))) ptr[1];
   char *result;
   int v = 0;
   ptr = v;
}

```

```
internal compiler error: error reporting routines re-entered.
0x294317e diagnostic_context::report_diagnostic(diagnostic_info*)
        ???:0
0x2943295 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x2960676 error(char const*, ...)
        ???:0
0x17f9089 build_array_type_1(tree_node*, tree_node*, bool, bool, bool)
        ???:0
0x29849b3 pretty_printer::format(text_info&)
        ???:0
0x2942dd6 diagnostic_context::report_diagnostic(diagnostic_info*)
        ???:0
0x2943295 diagnostic_context::diagnostic_impl(rich_location*,
diagnostic_metadata const*, diagnostic_option_id, char const*, __va_list_tag
(*) [1], diagnostic_t)
        ???:0
0x29608ef error_at(unsigned long, char const*, ...)
        ???:0
0xddaec0 cp_build_modify_expr(unsigned long, tree_node*, tree_code, tree_node*,
int)
        ???:0
0xddb327 build_x_modify_expr(unsigned long, tree_node*, tree_code, tree_node*,
tree_node*, int)
        ???:0
0xcfced3 c_parse_file()
        ???:0
0xe5f9d9 c_common_parse_file()
        ???:0
```

To quickly reproduce:

https://godbolt.org/z/K1snh1cME
  • [Bug c++/120312] New: internal... mario.rodriguezb1 at um dot es via Gcc-bugs

Reply via email to