Parses a postfix expression after a boolean literal:
auto x = true["Oh really?"]; // ok
This fixes PR34273.
|3–6 ↗||(On Diff #116917)|
I think this test should be added to test/Parser/ instead of CXX; this does not really appertain to [expr.sub]p1, which is more about the semantics than the parsing.
|4–5 ↗||(On Diff #116917)|
The "expected-no-diagnostics" comment should be right below the RUN line, and you only need it once.
Yes, you need to make sure that verify is on the RUN line. The existing test is broken like that (good catch). You should add -verify to the run line and // expected-no-diagnostics below it.