]> git.ipfire.org Git - thirdparty/gcc.git/commit
PR c++/77804 - Internal compiler error on incorrect initialization of new-d array
authormsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Oct 2016 17:34:00 +0000 (17:34 +0000)
committermsebor <msebor@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 4 Oct 2016 17:34:00 +0000 (17:34 +0000)
commitc30da20973a19b7b3f134b07dc72b33d6d3fd136
treea87ff9b4974d1e335b3768fe1efc84675186fac6
parent2a340d635271bbf41dd269b4e135b0e1de3b0c3a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@240754 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/cp/ChangeLog
gcc/cp/init.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Wplacement-new-size-4.C [new file with mode: 0644]