Issue Details (XML | Word | Printable)

Key: PCC-141
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Anders Magnusson
Reporter: Andreas Kaiser
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
pcc

typedef name in goto statement results in syntax error

Created: 21/May/10 09:17 PM   Updated: 21/May/10 09:38 PM
Component/s: C frontend
Affects Version/s: None
Fix Version/s: None


 Description  « Hide
Labels have their own namespace, so a typedef name may coexist with a label and the parser's handling of a label definition reflects this. The goto statement is less tolerant though. It appears to be sufficient to set "notype" in scan.l when encountering a "goto", similar to struct/union/enum.

 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Anders Magnusson added a comment - 21/May/10 09:38 PM
Great catch, and thanks for the recommended fix, it was the right way to fix it. Patch applied.

-- Ragge