https://gcc.gnu.org/bugzilla/show_bug.cgi?id=129243
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |NEW
Last reconfirmed| |2026-12-03
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed on trunk. When a virtual function in a class template has a requires
clause followed by pure-specifier '= 0;', the parser consumes '= 0' into the
constraint-expression and emits 'error: lvalue required as left operand of
assignment [-Wtemplate-body]' rather than diagnosing that a virtual function
cannot have a requires clause.