From dc2e6df29ee0f5b9dee4cded67ce4abdd6dbb54f Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Thu, 23 Sep 2004 20:16:48 +0000 Subject: [PATCH] re PR c++/17618 (ICE in cp_convert_to_pointer, at cp/cvt.c:83) 2004-09-23 Andrew Pinski PR c++/17618 * g++.dg/lookup/crash5.C: New test. From-SVN: r87980 --- gcc/testsuite/ChangeLog | 5 +++++ gcc/testsuite/g++.dg/lookup/crash5.C | 9 +++++++++ 2 files changed, 14 insertions(+) create mode 100644 gcc/testsuite/g++.dg/lookup/crash5.C diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 536ccf5cef8..79df7ecf68f 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2004-09-23 Andrew Pinski + + PR c++/17618 + * g++.dg/lookup/crash5.C: New test. + 2004-09-23 Dorit Naishlos * 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 index 00000000000..6584ee64505 --- /dev/null +++ b/gcc/testsuite/g++.dg/lookup/crash5.C @@ -0,0 +1,9 @@ +// { dg-do compile } +// +// PR 17618 + +void foo() +{ + p; // { dg-error "not declared" } + (void*) p; +} -- 2.30.2