[LLVMbugs] [Bug 22622] New: operator new lookup does not follow two-phase name lookup rules

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Feb 17 18:27:10 PST 2015


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: unassignedclangbugs at nondot.org
          Reporter: richard-llvm at metafoo.co.uk
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150218/09f9f8b8/attachment.html>


More information about the llvm-bugs mailing list