[LLVMbugs] [Bug 13915] New: Friend's templated environment is incorrectly friended

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Sep 25 02:31:27 PDT 2012


http://llvm.org/bugs/show_bug.cgi?id=13915

             Bug #: 13915
           Summary: Friend's templated environment is incorrectly friended
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: jaak.randmets at cyber.ee
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


$ cat t.cpp
template <class T >
struct A {
    struct B { };
    static void f () {
        T::g ();
    }
};

class C {
    template <class T> friend struct A<T>::B;
    static void g () { }
};

void h () {
    A<C>::f ();
}

$ clang++ -c t.cpp
$

-- 
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