| Summary: | Parser does not recognize calls to certain variadic functions | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Nathan Ridge <zeratul976> | ||||
| Component: | cdt-parser | Assignee: | 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: |
|
||||||
Created attachment 190127 [details]
testcase + fix
Fixed in 8.0 > 20110302. *** cdt cvs genie on behalf of mschorn *** Bug 333389: Variadic function templates. [*] CPPTemplates.java 1.132 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core/parser/org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates.java?root=Tools_Project&r1=1.131&r2=1.132 [*] AST2TemplateTests.java 1.208 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt-core/org.eclipse.cdt.core.tests/parser/org/eclipse/cdt/core/parser/tests/ast2/AST2TemplateTests.java?root=Tools_Project&r1=1.207&r2=1.208 Thanks Markus!! That got rid of a *lot* of red squigglies in our code! |
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 ...)