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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                URL|https://godbolt.org/z/rsc6f |
                   |s                           |
            Summary|ICE for NTTP with pointer   |ICE for NTTP with pointer
                   |to array of union           |to a field inside anonymous
                   |                            |union/struct

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://godbolt.org/z/rsc6fs

Here is another testcase which shows a similar issue:
struct I{
  union { int a{}; };
  int *i;
  constexpr I():i(&a){}
};
constexpr I i;
template<I>struct C{};
[[maybe_unused]]C<i>c;

---- CUT ----
Note clang has a bogus warning for the above about the anonymous union (I am
not going to file a bug about it though).

Reply via email to