This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]