From: Jason Merrill Date: Thu, 13 Mar 2003 20:45:22 +0000 (-0500) Subject: re PR c++/9336 (ICE in cp_line_of, at cp/error.c:2191) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6d7b8b3509ae39373f39a26d42a1a10398dbebea;p=gcc.git re PR c++/9336 (ICE in cp_line_of, at cp/error.c:2191) PR c++/9336 * decl2.c (lookup_arg_dependent): Handle error_mark_node. [[Split portion of a mixed commit.]] From-SVN: r64322.2 --- diff --git a/gcc/testsuite/g++.dg/overload/koenig1.C b/gcc/testsuite/g++.dg/overload/koenig1.C new file mode 100644 index 00000000000..dd38e720acf --- /dev/null +++ b/gcc/testsuite/g++.dg/overload/koenig1.C @@ -0,0 +1,18 @@ +// PR c++/9336 +// Bug: The first, invalid call to f caused us to crash on the second, +// valid call. + +namespace N { + template void f (T); + struct A; +} + +struct B; + +void g () +{ + B *bp; + N::A *ap; + f (bp); // { dg-error "undeclared" } + f (ap); +}