From: Jason Merrill Date: Mon, 1 Oct 2007 20:53:09 +0000 (-0400) Subject: re PR c++/15745 (exception specification incorrectly changes the type of the exceptio... X-Git-Tag: releases/gcc-4.2.2~49 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f52feed9e93e0cf27cf898fb717de9a10729e21c;p=thirdparty%2Fgcc.git re PR c++/15745 (exception specification incorrectly changes the type of the exception thrown) PR c++/15745 * except.c (prepare_eh_type): Use type_decays_to. From-SVN: r128917 --- diff --git a/gcc/testsuite/g++.dg/ext/vla4.C b/gcc/testsuite/g++.dg/ext/vla4.C index 8b7f38f8ba80..ecec908074d5 100644 --- a/gcc/testsuite/g++.dg/ext/vla4.C +++ b/gcc/testsuite/g++.dg/ext/vla4.C @@ -7,7 +7,7 @@ void f(int i) { try { int a[i]; throw &a; // { dg-error "variable size" } - } catch (int (&)[i]) { // { dg-error "variable size" } + } catch (int (*)[i]) { // { dg-error "variable size" } } }