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

            Bug ID: 127744
           Summary: ICE in base_ctor_omit_inherited_parms, at cp/method.cc
           Product: gcc
           Version: 17.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: s.kimura.h41104 at gmail dot com
  Target Milestone: ---

Compiler Explorer: https://godbolt.org/z/YdGG95jKj

Reproducer:
```
struct A {};

struct VB : A {
  using A::A;
};

struct B : A {
  using A::A;
};

struct C : B, virtual VB {
  using B::B;
  using VB::VB;
};
```

Backtrace:
<source>:11:8: internal compiler error: tree check: expected tree_binfo, have
tree_list in base_ctor_omit_inherited_parms, at cp/method.cc:585
   11 | struct C : B, virtual VB {
      |        ^
0x2c786f8 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
        ???:0
0x2c6d33b internal_error(char const*, ...)
        ???:0
0xa4586a tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        ???:0
0xbcc3cc clone_cdtor(tree_node*, bool)
        ???:0
0xbdec8d finish_struct_1(tree_node*)
        ???:0
0xbe0667 finish_struct(tree_node*, tree_node*)
        ???:0
0xddc653 c_parse_file()
        ???:0
0xf70339 c_common_parse_file()
        ???:0
  • [Bug c++/127744] New: ICE in... s.kimura.h41104 at gmail dot com via Gcc-bugs

Reply via email to