[LLVMbugs] [Bug 9308] New: clang should not accept calling protected members of superclasses on the superclass's type
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 23 17:06:04 PST 2011
http://llvm.org/bugs/show_bug.cgi?id=9308
Summary: clang should not accept calling protected members of
superclasses on the superclass's type
Product: clang
Version: trunk
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: nicolasweber at gmx.de
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
gcc rejects this, clang should too:
class A {
protected:
A(int a) {}
};
class B : public A {
void f() {
A a(32);
}
};
--
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