re PR c++/44613 (Declaring an array with non-constant length inside a switch corrupts...
commit0450fc0b5172c89c5f4699918b8c9fab0cc4b8ce
authorPatrick Palka <patrick@parcs.ath.cx>
Fri, 4 Apr 2014 19:36:00 +0000 (5 02:36 +0700)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 4 Apr 2014 19:36:00 +0000 (4 15:36 -0400)
treef7b75c382b59179eb5fe4c75f7d7165e04fa37ad
parent822cc906fd9341dd64f808f4553aaa07c8de8c6a
re PR c++/44613 (Declaring an array with non-constant length inside a switch corrupts stack pointer.)

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.

From-SVN: r209125
gcc/cp/ChangeLog
gcc/cp/decl.c
gcc/cp/semantics.c
gcc/testsuite/g++.dg/ext/vla15.C [new file with mode: 0644]