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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2025-01-08
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
clang produces:
```
<source>:9:24: error: called object type 'std::size_t' (aka 'unsigned long') is
not a function or function pointer
    9 |   static_assert(false, A{});
      |                        ^
<source>:9:24: error: called object type 'const char *' is not a function or
function pointer
    9 |   static_assert(false, A{});
      |                        ^
<source>:9:24: error: the message in a static assertion must have a 'size()'
member function returning an object convertible to 'std::size_t'

```


Which explains what is going on.

Reply via email to