[LLVMbugs] [Bug 23018] New: clang claims an inherited constructor protected when declared public with using
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Mar 25 03:15:45 PDT 2015
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: unassignedclangbugs at nondot.org
Reporter: andreas.pokorny at gmail.com
CC: dgregor at apple.com, llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20150325/7a3fa069/attachment.html>
More information about the llvm-bugs
mailing list