------- Comment #3 from steven at gcc dot gnu dot org 2009-03-29 22:36 ------- Created an attachment (id=17557) --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=17557&action=view) Always create a new BIND_EXPR for VLA decls
I tried to make use of scopes: If a label is defined in a parent scope, start a new BIND_EXPR. This did not work. So the attached patch takes the brute-force approach. When optimizing, this _should_ not hurt, but we get two __builtin_stack_restore calls now. Apparently Jakub's PR23848 fix doesn't work for our case. Anyway, this patch does, of course, make the test case of comment #0 run. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19771