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

Bug 356818

Summary: [C++] false error in template specialization
Product: [Tools] CDT Reporter: trashyankes
Component: cdt-parserAssignee: Markus Schorn <mschorn.eclipse>
Status: RESOLVED FIXED QA Contact: Markus Schorn <mschorn.eclipse>
Severity: trivial    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description trashyankes CLA 2011-09-06 10:14:06 EDT
template<typename T1,typename T2>
class A{};
template<typename T1>
class A<T1, int>{};
template<typename T2>
class A<int, T2>{};
template<>
class A<int, int>{};// error: `A<int, int> is ambiguous Candidates are:` <- no candidates show


-- Configuration Details --
Product: Eclipse 1.3.2.20110218-0812 (org.eclipse.epp.package.cpp.product)
Installed Features:
 org.eclipse.platform 3.6.2.r362_v20110210-9gF78Gs1FrIGnHDHWkEcopoN8AmxeZflGDGKQi
Comment 1 Markus Schorn CLA 2011-09-08 08:08:39 EDT
Thanks for the example, added testcase and fix.
Comment 2 CDT Genie CLA 2011-09-08 08:23:02 EDT
*** cdt git genie on behalf of Markus Schorn ***

    Bug 356818: Explicit instance, which would be illegal as implicit one.

[*] http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/commit/?id=7d0c06294a7ca7ca73e86c8a061198f77991991c