[Bug c++/66542] [4.9/5/6 Regression] [C++11] Can create static variable of type that has deleted destructor

jason at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Jun 23 14:08:00 GMT 2015


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



More information about the Gcc-bugs mailing list