https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108275
Bug ID: 108275 Summary: GCC accepts invalid program using private data member Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jlame646 at gmail dot com Target Milestone: --- The following program is accepted by gcc but rejected by clang and msvc. https://godbolt.org/z/18fbMYTW7 ``` class Base { int i; }; template <auto V> struct Foo { int a; }; int main() { struct Foo<&Base::i> struct_foo; } ```