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

Reply via email to