[Bug c++/44613] Declaring an array with non-constant length inside a switch corrupts stack pointer.
jason at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Fri Apr 4 19:36:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44613
--- Comment #9 from Jason Merrill <jason at gcc dot gnu.org> ---
Author: jason
Date: Fri Apr 4 19:36:00 2014
New Revision: 209125
URL: http://gcc.gnu.org/viewcvs?rev=209125&root=gcc&view=rev
Log:
PR c++/44613
* semantics.c (add_stmt): Set STATEMENT_LIST_HAS_LABEL.
* decl.c (cp_finish_decl): Create a new BIND_EXPR before
instantiating a variable-sized type.
Added:
trunk/gcc/testsuite/g++.dg/ext/vla15.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/decl.c
trunk/gcc/cp/semantics.c
More information about the Gcc-bugs
mailing list