Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 333808

Summary: Syntax error in constructor with unnamed parameter
Product: [Tools] CDT Reporter: Nathan Ridge <zeratul976>
Component: cdt-indexerAssignee: 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:

Description Nathan Ridge CLA 2011-01-09 02:55:42 EST
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.
Comment 1 Markus Schorn CLA 2011-01-10 03:25:31 EST

*** This bug has been marked as a duplicate of bug 333200 ***