[LLVMbugs] [Bug 7644] New: Bogus access checking error

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jul 14 16:36:23 PDT 2010


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: unassignedclangbugs at nondot.org
        ReportedBy: andersca at mac.com
                CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com


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.



More information about the llvm-bugs mailing list