[LLVMbugs] [Bug 13944] New: clang++ can't compile constructors with default parameters, which depends on more than one template parameters
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Thu Sep 27 07:11:59 PDT 2012
http://llvm.org/bugs/show_bug.cgi?id=13944
Bug #: 13944
Summary: clang++ can't compile constructors with default
parameters, which depends on more than one template
parameters
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: enhancement
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: lutzusbutzus1 at gmx.net
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
Classification: Unclassified
hi,
I wrote something, which is similar to the following code, which won't get
compiled by clang++. I compiled llvm and clang++ from trunk to test it. g++
4.7.2 compiles this.
clang++ has an issue with the template parameter dim at the default argument at
the constructor of blubb
template<typename T, int dim>
struct point {};
template<typename T, int dim>
struct blubb {
blubb(const point<T, dim> &x = point<T, dim>()) {}
};
int main(int argc, char * argv[]) {
blubb<float, 3> x = blubb<float, 3>();
return 0;
}
--
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