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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |diagnostic

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
GCC 10+ rejects it but does NOT say why though:
<source>:6:13: error: 'V{V::<unnamed union>{V::<unnamed union>::<unnamed
struct>{0}}}' is not a constant expression
    6 | constexpr V v;
      |             


So keeping open for that.

(In reply to Ted Lyngmo from comment #2)
> Does this bug cover this case? This compiles with g++ but clang++ gives
> "error: constexpr union constructor does not initialize any member".

No.

Reply via email to