This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/56319] implicit copy constructor is not deleted when it is ill formed
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 14 Feb 2013 12:32:31 +0000
- Subject: [Bug c++/56319] implicit copy constructor is not deleted when it is ill formed
- Auto-submitted: auto-generated
- References: <bug-56319-4@http.gcc.gnu.org/bugzilla/>
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;
}