[LLVMbugs] [Bug 11851] New: clang doesn't instantiate constexpr functions where necessary during overload resolution
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jan 24 17:20:54 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=11851
Bug #: 11851
Summary: clang doesn't instantiate constexpr functions where
necessary during overload resolution
Product: clang
Version: unspecified
Platform: PC
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P
Component: C++0x
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu,
richard-llvm at metafoo.co.uk
Classification: Unclassified
Testcase:
template<int x> constexpr int f() { return x; }
template<int i> void ovf(int (&x)[f<i>()]);
void f() { int x[10]; ovf<10>(x); }
As far as I can tell, this is valid C++11.
--
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