[llvm-bugs] [Bug 26182] New: Associated namespaces of local classes in ADL

via llvm-bugs llvm-bugs at lists.llvm.org
Sun Jan 17 05:59:17 PST 2016


https://llvm.org/bugs/show_bug.cgi?id=26182

            Bug ID: 26182
           Summary: Associated namespaces of local classes in ADL
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++11
          Assignee: unassignedclangbugs at nondot.org
          Reporter: r.hl at gmx.net
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

template <typename T>
void f(T t) {g(&t);}

void g(void*) {}

struct A {} a;
void h() {
    struct B {} b;
    f(a); // (1)
    f(b); // (2)
}

--------------------------

(2) fails while (1) doesn't, despite the fact that both have the same set of
associated namespaces as per [basic.lookup.argdep]/(2.2).

-- 
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/20160117/7c4a6fec/attachment.html>


More information about the llvm-bugs mailing list