This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/49066] [C++0x] Non-defining declaration of deleted function suppresses usage validation
- From: "jason at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 21 May 2011 22:07:24 +0000
- Subject: [Bug c++/49066] [C++0x] Non-defining declaration of deleted function suppresses usage validation
- Auto-submitted: auto-generated
- References: <bug-49066-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49066
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> 2011-05-21 21:35:53 UTC ---
Author: jason
Date: Sat May 21 21:35:50 2011
New Revision: 174003
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=174003
Log:
PR c++/49066
* decl.c (duplicate_decls): Preserve DECL_DELETED_FN.
Added:
branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/defaulted26.C
Modified:
branches/gcc-4_6-branch/gcc/cp/ChangeLog
branches/gcc-4_6-branch/gcc/cp/decl.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog