https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110828
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |DUPLICATE Status|UNCONFIRMED |RESOLVED --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Patrick Palka from comment #1) > Does it work if you move the static_assert into a function scope? If so then > this is probably a dup of PR85944. Yes it does work with: ``` void f1() { static_assert(S{}.f()); } ``` So yes it is a dup. *** This bug has been marked as a duplicate of bug 85944 ***