This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/15508] Size evaluation of variable-length array seem to be skipped in some cases.
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 18 May 2004 14:20:10 -0000
- Subject: [Bug c++/15508] Size evaluation of variable-length array seem to be skipped in some cases.
- References: <20040518102702.15508.takashi.yano@nifty.ne.jp>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-05-18 14:20 -------
Actually it is rejecting that expression which is correct:
void func(int r)
{
int **a = new int [2][r];
delete [] a;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=15508