[llvm-bugs] [Bug 45026] Incorrect "dependent using declaration resolved to type without 'typename'" error
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Feb 26 13:30:29 PST 2020
https://bugs.llvm.org/show_bug.cgi?id=45026
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang implements the resolution of
http://wiki.edg.com/pub/Wg21belfast/CoreWorkingGroup/cwg_active.html#2070; the
other compilers do not. This is not a bug.
You should always write an inheriting constructor declaration using the same
name before and after the ::, thus:
using parent_t::parent_t;
All three compilers accept that form, and after core issue 2070, it's the only
correct syntax.
--
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/20200226/c0e59f81/attachment.html>
More information about the llvm-bugs
mailing list