[llvm-bugs] [Bug 33395] bug in constructor forwarding?

via llvm-bugs llvm-bugs at lists.llvm.org
Thu Jun 15 19:13:24 PDT 2017


Eric Fiselier <eric at efcs.ca> changed:

           What    |Removed                     |Added
                 CC|                            |eric at efcs.ca
             Status|NEW                         |RESOLVED
         Resolution|---                         |INVALID

--- Comment #1 from Eric Fiselier <eric at efcs.ca> ---
Reduced reproducer:

struct A {};
struct B : A { using A::A; };
B test() { return A{}; }

The reason this is rejected is that the copy/move constructors of A are not
inherited by B. This is the desired behavior.

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/20170616/9ebf2fd3/attachment.html>

More information about the llvm-bugs mailing list