| Summary: | False "Semantic Error" on template template default arguments | ||
|---|---|---|---|
| Product: | [Tools] CDT | Reporter: | Artem Pelenitsyn <ulysses4ever> |
| Component: | cdt-parser | Assignee: | Markus Schorn <mschorn.eclipse> |
| Status: | RESOLVED FIXED | QA Contact: | Markus Schorn <mschorn.eclipse> |
| Severity: | normal | ||
| Priority: | P3 | CC: | cdtdoug, eclipse.sprigogin, malaperle |
| Version: | 8.0 | ||
| Target Milestone: | 8.1.0 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Thanks for the example, added testcase and fix. (In reply to comment #1) > Thanks for the example, added testcase and fix. Sorry for silly question: where can I see the fix and when will it be possible to get it on my computer (through update or anyhow…)? *** cdt git genie on behalf of Markus Schorn ***
Bug 357308: Resolving references to parameters of template-template paramters.
[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=053b4c32c5291512e8d2f0ac7afcb0d94107b8d2
*** Bug 357404 has been marked as a duplicate of this bug. *** (In reply to comment #2) > Sorry for silly question: where can I see the fix and when will it be possible > to get it on my computer (through update or anyhow…)? You can wait for the next release or pick up one of the nightly builds: https://hudson.eclipse.org/hudson/job/cdt-nightly/ |
The problem is in perfectly valid C++ code as follows. template<typename T> struct SS {}; template< template<typename T, typename S = SS<T> > class Cont> // "Type T could not be resolved." — on second occurence of T. Type: Semantic Error. Cont<int> f() {}