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++/54984] [4.6/4.7/4.8 Regression] Array allocated with new in a template class is default initialised


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54984

--- Comment #6 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-10-26 14:03:38 UTC ---
Author: paolo
Date: Fri Oct 26 14:03:32 2012
New Revision: 192846

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=192846
Log:
/cp
2012-10-26  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/54984
    * init.c (build_new): Don't turn a null *init into a pointer to
    empty vector orig_init.

/testsuite
2012-10-26  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/54984
    * g++.dg/template/new11.C: New.


Added:
    trunk/gcc/testsuite/g++.dg/template/new11.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/init.c
    trunk/gcc/testsuite/ChangeLog


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