[Bug c++/59097] [4.7/4.8/4.9 Regression] ICE with invalid statement expression as array size
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Jan 28 13:45:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59097
--- Comment #2 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Tue Jan 28 13:44:30 2014
New Revision: 207184
URL: http://gcc.gnu.org/viewcvs?rev=207184&root=gcc&view=rev
Log:
PR c++/59097
* decl.c (compute_array_index_type): Don't call
maybe_constant_value for a non-integral expression.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/ext/stmtexpr15.C
Modified:
branches/gcc-4_8-branch/gcc/cp/ChangeLog
branches/gcc-4_8-branch/gcc/cp/decl.c
More information about the Gcc-bugs
mailing list