[LLVMbugs] [Bug 12505] New: clang rejects access to a protected constructor by a base class

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Apr 9 11:00:40 PDT 2012


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

             Bug #: 12505
           Summary: clang rejects access to a protected constructor by a
                    base class
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++11
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


clang rejects this in c++11 mode, gcc 4.6 accepts

struct foo {
protected:
  foo(const foo& str);
};
struct bar : public foo {
  bar();
};
bar Substring() {
  return bar();
}

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