Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 333389 - Parser does not recognize calls to certain variadic functions
Summary: Parser does not recognize calls to certain variadic functions
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 8.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Elena Laskavaia CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-02 15:12 EST by Nathan Ridge CLA
Modified: 2011-03-03 22:14 EST (History)
1 user (show)

See Also:


Attachments
testcase + fix (2.06 KB, patch)
2011-03-02 05:53 EST, Markus Schorn CLA
mschorn.eclipse: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!