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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Keywords|                            |needs-bisection

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Seems to be fixed on the trunk.
I get now:
<source>: In function 'void g()':
<source>:3:63:   in 'constexpr' expansion of 'foo(local_s)'
<source>:3:71: error: the value of 'local_s' is not usable in a constant
expression
    3 | void g () { const s local_s = { 1, 2 }; constexpr int a = foo
(local_s); }
      |                                                                       ^
<source>:3:21: note: 'local_s' was not declared 'constexpr'
    3 | void g () { const s local_s = { 1, 2 }; constexpr int a = foo
(local_s); }
      |                     ^~~~~~~

Reply via email to