[LLVMbugs] [Bug 7463] New: clang c++ bad template deduction for argument of type "const int"
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Jun 23 11:31:13 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7463
Summary: clang c++ bad template deduction for argument of type
"const int"
Product: clang
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: sharparrow1 at yahoo.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
Testcase:
const int f ();
template <typename T_> void g (T_&);
void h (void) { g(f()); }
clang accepts this; it should be rejected because the "const" shouldn't affect
the template type deduction. Testcase from
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38540 .
--
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