| Summary: | Syntax error in constructor with unnamed parameter | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Nathan Ridge <zeratul976> |
| Component: | cdt-indexer | Assignee: | Project Inbox <cdt-indexer-inbox> |
| Status: | CLOSED DUPLICATE | QA Contact: | Markus Schorn <mschorn.eclipse> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug |
| Version: | 8.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
*** This bug has been marked as a duplicate of bug 333200 *** |
The parser gives a syntax error for the following valid code: struct C {}; struct D { int a, b; D(C) : a(0), b(0) {} // SYNTAX ERROR HERE }; Giving the constructor parameter a name causes the error to go away.