Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 356818 - [C++] false error in template specialization
Summary: [C++] false error in template specialization
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-parser (show other bugs)
Version: 8.0   Edit
Hardware: PC Windows XP
: P3 trivial (vote)
Target Milestone: 8.1.0   Edit
Assignee: Markus Schorn CLA
QA Contact: Markus Schorn CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-06 10:14 EDT by trashyankes CLA
Modified: 2012-02-23 11:33 EST (History)
1 user (show)

See Also:


Attachments

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