This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/66542] [4.9/5/6 Regression] [C++11] Can create static variable of type that has deleted destructor
- 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: Tue, 23 Jun 2015 14:08:51 +0000
- Subject: [Bug c++/66542] [4.9/5/6 Regression] [C++11] Can create static variable of type that has deleted destructor
- Auto-submitted: auto-generated
- References: <bug-66542-4 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66542
--- Comment #3 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jun 23 14:08:19 2015
New Revision: 224842
URL: https://gcc.gnu.org/viewcvs?rev=224842&root=gcc&view=rev
Log:
PR c++/66542
* decl.c (expand_static_init): Make sure the destructor is callable
here even if we have an initializer.
Added:
trunk/gcc/testsuite/g++.dg/cpp0x/deleted12.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c