re PR c++/66542 ([C++11] Can create static variable of type that has deleted destructor)
authorJason Merrill <jason@redhat.com>
Tue, 23 Jun 2015 14:08:19 +0000 (10:08 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Tue, 23 Jun 2015 14:08:19 +0000 (10:08 -0400)
commitd4c9e7f92225d829ad1d18c950066cf99fc58cc7
treeadaf8fbed9e5458f3d36bf4ae5c9b7f35c801603
parentc079cbacb722ed8d9219a4c0518e87fdb1b70b3a
re PR c++/66542 ([C++11] Can create static variable of type that has deleted destructor)

PR c++/66542
* decl.c (expand_static_init): Make sure the destructor is callable
here even if we have an initializer.

From-SVN: r224842
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/testsuite/g++.dg/cpp0x/deleted12.C [new file with mode: 0644]