https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111132
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Known to work| |8.5.0 Known to fail| |9.1.0 Ever confirmed|0 |1 Status|UNCONFIRMED |NEW Keywords| |needs-bisection Summary|Function redeclaration in |[11/12/13/14 Regression] |local scope breaks constant |Function redeclaration in |expression evaluation |local scope breaks constant | |expression evaluation Last reconfirmed| |2023-08-24 --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed. This used to mostly worked in GCC 8.5.0 and before. In GCC 8.5.0 and before GCC would produce a bogus warning but the static_assert would worked. <source>:7:20: warning: inline function 'constexpr bool bar()' used but never defined constexpr bool bar(void); ^~~