https://llvm.org/bugs/show_bug.cgi?id=23018
Bug ID: 23018
Summary: clang claims an inherited constructor protected when
declared public with using
Product: clang
Version: 3.6
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Created attachment 14096
--> https://llvm.org/bugs/attachment.cgi?id=14096&action=edit
Two versions of the error included, one variant works with gcc, the other
yields the same behavior in gcc and clang
See the attached file.
Behavior with clang-3.6 and clang-3.5:
bug_report.cpp:25:7: error: calling a protected constructor of class 'Bar'
} bar(a);
^
bug_report.cpp:24:20: note: declared protected here
using Foo::Foo;
^
1 error generated.
--
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