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++/77804] Internal compiler error on incorrect initialization of new-d array


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77804

--- Comment #3 from Martin Sebor <msebor at gcc dot gnu.org> ---
Author: msebor
Date: Tue Oct  4 17:34:00 2016
New Revision: 240754

URL: https://gcc.gnu.org/viewcvs?rev=240754&root=gcc&view=rev
Log:
PR c++/77804 - Internal compiler error on incorrect initialization of new-d
array

gcc/cp/ChangeLog:

        PR c++/77804
        * init.c (warn_placement_new_too_small): Avoid assuming an array type
        has a constant size.

gcc/testsuite/ChangeLog:

        PR c++/77804
        * g++.dg/warn/Wplacement-new-size-4.C: New test.


Added:
    trunk/gcc/testsuite/g++.dg/warn/Wplacement-new-size-4.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]