[LLVMbugs] [Bug 11793] New: access control somehow suppressed in for-in loop container expression

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Tue Jan 17 23:00:41 PST 2012


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

             Bug #: 11793
           Summary: access control somehow suppressed in for-in loop
                    container expression
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++0x
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rjmccall at apple.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


This is bizarre, but I am not seeing the expected error in the following code:

class A {
  int x[10]; // private
};

void test(A *a) {
  for (unsigned value : a->x) { // should be illegal
  }
}

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