re PR c++/17618 (ICE in cp_convert_to_pointer, at cp/cvt.c:83)
authorAndrew Pinski <pinskia@physics.uc.edu>
Thu, 23 Sep 2004 20:16:48 +0000 (20:16 +0000)
committerAndrew Pinski <pinskia@gcc.gnu.org>
Thu, 23 Sep 2004 20:16:48 +0000 (13:16 -0700)
2004-09-23  Andrew Pinski  <pinskia@physics.uc.edu>

        PR c++/17618
        * g++.dg/lookup/crash5.C: New test.

From-SVN: r87980

gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/lookup/crash5.C [new file with mode: 0644]

index 536ccf5cef8f6a3a6dab9299b9c482e475ca3d18..79df7ecf68fc5a94a497d1620f120cacefabfd82 100644 (file)
@@ -1,3 +1,8 @@
+2004-09-23  Andrew Pinski  <pinskia@physics.uc.edu>
+
+       PR c++/17618
+       * g++.dg/lookup/crash5.C: New test.
+
 2004-09-23  Dorit Naishlos <dorit@il.ibm.com>
 
         * gcc.dg/vect/vect-27.c: Now vectorized on altivec.
diff --git a/gcc/testsuite/g++.dg/lookup/crash5.C b/gcc/testsuite/g++.dg/lookup/crash5.C
new file mode 100644 (file)
index 0000000..6584ee6
--- /dev/null
@@ -0,0 +1,9 @@
+// { dg-do compile }
+//
+// PR 17618
+
+void foo()
+{
+    p; // { dg-error "not declared" }
+    (void*) p;
+}