[LLVMbugs] [Bug 9353] New: Default arguments do not work in template template functions
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Mar 1 09:12:22 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9353
Summary: Default arguments do not work in template template
functions
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: chris at bubblescope.net
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
The following code does not compile in clang, because there is only one
parameter on IntervalMap in the typedef, instead of two. It does compile in g++
and comeau.
template<class _T, class Traits> class IM;
template <class T, class Trt, template<class _T, class Traits = int> class
IntervalMap>
void foo(IntervalMap<T,Trt>* m)
{ typedef IntervalMap<int> type; }
Hm
void f(IM<int, int>* m)
{ foo(m); }
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list