[cfe-dev] More throw fixups
Mike Stump
mrs at apple.com
Wed May 28 14:41:30 PDT 2008
On May 23, 2008, at 9:28 AM, Chris Lattner wrote:
> On May 22, 2008, at 7:02 PM, Mike Stump wrote:
>> 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.
More information about the cfe-dev
mailing list