[Bug c++/56319] implicit copy constructor is not deleted when it is ill formed

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Thu Feb 14 12:32:00 GMT 2013


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

Jonathan Wakely <redi at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|major                       |normal

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> 2013-02-14 12:32:31 UTC ---
reduced:

#include <tuple>

template <typename... Args>
void fooImpl(std::tuple<Args...> args)
{
}

template <typename... Args>
void foo(std::tuple<Args...> args)
{
    fooImpl(args);
}

enum E { id };

int main()
{
    foo(std::forward_as_tuple(id));
    return 0;
}



More information about the Gcc-bugs mailing list