[Bug c++/58089] expanding empty parameter pack as constructor arguments requires accessible copy constructor

aaz@q-fu.com gcc-bugzilla@gcc.gnu.org
Fri Nov 29 12:53:00 GMT 2013


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58089

Andrey Zholos <aaz@q-fu.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aaz@q-fu.com

--- Comment #2 from Andrey Zholos <aaz@q-fu.com> ---
I also stumbled onto this bug, and bug 59141 is a duplicate.

It appears the empty parameter pack is expanded as t({}) rather than t().

There is a similar example in 14.5.3p6 that indicates obj should be value-
initialized (not copy-constructed), and clang accepts this code.



More information about the Gcc-bugs mailing list