]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR c++/15745 (exception specification incorrectly changes the type of the exceptio...
authorJason Merrill <jason@gcc.gnu.org>
Mon, 1 Oct 2007 20:53:09 +0000 (16:53 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Mon, 1 Oct 2007 20:53:09 +0000 (16:53 -0400)
        PR c++/15745
        * except.c (prepare_eh_type): Use type_decays_to.

From-SVN: r128917

gcc/testsuite/g++.dg/ext/vla4.C

index 8b7f38f8ba80f21bda926d0ee840f81918662eba..ecec908074d55f725d33743bf345753e70921d3f 100644 (file)
@@ -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" }
   }
 }