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

Mital Ashok <mital at mitalashok dot co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mital at mitalashok dot co.uk

--- Comment #11 from Mital Ashok <mital at mitalashok dot co.uk> ---
Looks like the original alignas(...) bug is fixed, but the
__attribute__((vector_size(...))) one remains even in GCC15 (should a new bug
for that be opened?)

You don't even need dependent expressions:

    char vec __attribute__((vector_size(__builtin_is_constant_evaluated() ? 2 :
2)));
    // error: 'vector_size' attribute argument value
'(__builtin_is_constant_evaluated() ? 2 : 2)' is not an integer constant

`if consteval` also triggers this

Reply via email to