This fixes the last of the throw parsing issues I know about...
Ran the testsuite, no problems.
d.txt (6.97 KB)
This fixes the last of the throw parsing issues I know about...
Ran the testsuite, no problems.
d.txt (6.97 KB)
Hi Mike,
Do you have a testcase? What does this fix?
-Chris
This fixes the last of the throw parsing issues I know about...
Ran the testsuite, no problems.
Do you have a testcase?
I was using:
int i;
void foo() {
(throw,throw);
(1 ? throw 1 : throw 2);
throw int(1);
throw;
throw 1;
throw;
(void)throw; // ERROR - expected expression
switch (i) case throw: ; // ERROR - case label does not reduce to an integer constant
}
to develop it. I haven't massaged this into a real live clang testcase yet.
What does this fix?
Primarily the first line.