https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64989
Bug ID: 64989 Summary: constant-initialization of self-referencing array Product: gcc Version: 5.0 Status: UNCONFIRMED Keywords: wrong-code Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: jason at gcc dot gnu.org CC: jakub at gcc dot gnu.org, jason at gcc dot gnu.org, wolfgang.roe...@gi-de.com Depends on: 64899 +++ This bug was initially created as a clone of Bug #64899 +++ The testcase in bug 64899 works now, but this one still doesn't. struct S { void *p; constexpr S (): p(this) {} }; constexpr S sa[2]; #define SA(X) static_assert((X),#X) SA(sa[1].p == &sa[1]);