Open hubert-reinterpretcast opened 5 years ago
Nice catch! Is this supposed to be well-formed though? Why would a requires-expression be allowed after that &?
Why would a requires-expression be allowed after that &?
The first part is a call that produces an int
; a requires-expression is just a bool
, and thus allowed there.
gotcha
Given:
The
{
should trigger parsing of the statement as an expression-statement since, in this context, it can start neither a function-body nor an initializer.Currently we get: