This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/77804] Internal compiler error on incorrect initialization of new-d array
- From: "msebor at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 04 Oct 2016 17:34:32 +0000
- Subject: [Bug c++/77804] Internal compiler error on incorrect initialization of new-d array
- Auto-submitted: auto-generated
- References: <bug-77804-4@http.gcc.gnu.org/bugzilla/>
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