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

           Summary: Bogus access checking error
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]


struct A {
private:
    enum Enumeration { Foo, Bar };

    template<Enumeration> void f();
};

template <A::Enumeration> void A::f() { }


andersca1:clang andersca$ clang -cc1 -fsyntax-only t.cpp
t.cpp:8:14: error: 'Enumeration' is a private member of 'A'
template <A::Enumeration> void A::f() { }
             ^
t.cpp:3:10: note: declared private here
    enum Enumeration { Foo, Bar };
         ^
1 error generated.

-- 
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to