http://llvm.org/bugs/show_bug.cgi?id=22622
Bug ID: 22622
Summary: operator new lookup does not follow two-phase name
lookup rules
Product: clang
Version: trunk
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Clang accepts this ill-formed code:
template<typename T> void f() { new (1, 2, 3) T; }
void *operator new(unsigned long, int, int, int);
template void f<int>();
We (apparently) don't implement two-phase name lookup for new-expressions.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs