| Summary: | Parser doesn't like GCC labels as values | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | James Blackburn <jamesblackburn+eclipse> |
| Component: | cdt-parser | Assignee: | Project Inbox <cdt-parser-inbox> |
| Status: | RESOLVED DUPLICATE | QA Contact: | Markus Schorn <mschorn.eclipse> |
| Severity: | normal | ||
| Priority: | P3 | CC: | Alex.Burr, cdtdoug |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | All | ||
| Whiteboard: | |||
|
Description
James Blackburn
Or Alex's more realistic jumptable use case:
int func(int i)
{
void *jumptable[4] = {&&lab0, &&lab1, &&lab2, &&lab3};
goto *jumptable[i];
lab0: return 0;
lab1: return 1;
lab2: return 2;
lab3: return 3;
return 4;
}
|