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

Bug 333389

Summary: Parser does not recognize calls to certain variadic functions
Product: [Tools] CDT Reporter: Nathan Ridge <zeratul976>
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Elena Laskavaia <elaskavaia.cdt>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
testcase + fix mschorn.eclipse: iplog-

Description Nathan Ridge CLA 2011-01-02 15:12:29 EST
For the following code:

struct S {};

template <typename... Args>
void h(S s, Args... args)
{   
}

void g()
{
    S s;
    int i;
    h(s, i);  // ERROR HERE
}

The parser gives an error:

Invalid arguments Candidates are: void h(S, #0 ...)
Comment 1 Markus Schorn CLA 2011-03-02 05:53:55 EST
Created attachment 190127 [details]
testcase + fix
Comment 2 Markus Schorn CLA 2011-03-02 05:54:50 EST
Fixed in 8.0 > 20110302.
Comment 4 Nathan Ridge CLA 2011-03-03 22:14:16 EST
Thanks Markus!!
That got rid of a *lot* of red squigglies in our code!