[llvm-bugs] [Bug 45801] The using declaration doesn't work for parent class' constructors.

via llvm-bugs llvm-bugs at lists.llvm.org
Tue May 5 11:17:38 PDT 2020


https://bugs.llvm.org/show_bug.cgi?id=45801

Richard Smith <richard-llvm at metafoo.co.uk> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |INVALID
             Status|NEW                         |RESOLVED

--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang implements the resolution of C++ core issue 2070
(http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_active.html#2070), the other
compilers do not do so (yet).

The correct (and portable across compilers that do and do not implement 2070)
way to write an inheriting constructor declaration is

using Base::Base;

-- 
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/20200505/1088d590/attachment.html>


More information about the llvm-bugs mailing list