[Bug c++/126794] New: [reflection] ICE in splice of member access via an incomplete base class

skarnproject at gmail dot com via Gcc-bugs <[email protected]>
Newsgroups gmane.comp.gcc.bugs
Message-ID <[email protected]/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126794

            Bug ID: 126794
           Summary: [reflection] ICE in splice of member access via an
                    incomplete base class
           Product: gcc
           Version: 16.2.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: skarnproject at gmail dot com
  Target Milestone: ---

Splicing a non-static data member that is declared in a base class, where the
object expression has a type that is itself a splice of a class-template
specialization, segfaults the compiler.

https://godbolt.org/z/Gd7Pr8naj
The example on Godbolt says it all.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.