From: Nathan Sidwell Date: Mon, 4 Sep 2000 10:24:58 +0000 (+0000) Subject: * g++.old-deja/g++.pt/koenig1.C: New test. X-Git-Tag: prereleases/libstdc++-2.92~4288 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=258451c86bf3c6ac4cd0b79254232ebe22a24fc3;p=thirdparty%2Fgcc.git * g++.old-deja/g++.pt/koenig1.C: New test. From-SVN: r36133 --- diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 5e423fd3a16f..bd135bdddcac 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2000-09-04 Nathan Sidwell + + * g++.old-deja/g++.pt/koenig1.C: New test. + 2000-09-04 Jakub Jelinek * gcc.dg/20000904-1.c: New test. diff --git a/gcc/testsuite/g++.old-deja/g++.pt/koenig1.C b/gcc/testsuite/g++.old-deja/g++.pt/koenig1.C new file mode 100644 index 000000000000..51f71158c793 --- /dev/null +++ b/gcc/testsuite/g++.old-deja/g++.pt/koenig1.C @@ -0,0 +1,22 @@ +// Build don't link: +// +// Copyright (C) 2000 Free Software Foundation, Inc. +// Contributed by Nathan Sidwell 18 Aug 2000 + +// bug 123. We ICEd when koenig lookup found a COMPONENT_REF inside a +// TEMPLATE_ID_EXPR. + +void foo(void (*f)()); + +struct A { +template +static void g(); +template +void f(); // ERROR - candiate + +static void f_plus () + { + foo (f<0>); // ERROR - no match + foo (g<0>); + } +};