This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]