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

Reply via email to