OSDN Git Service

* g++.old-deja/g++.pt/typename27.C: New test.
authornathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Aug 2000 09:21:31 +0000 (09:21 +0000)
committernathan <nathan@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 18 Aug 2000 09:21:31 +0000 (09:21 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35776 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.pt/typename27.C [new file with mode: 0644]

index e99e279..8465331 100644 (file)
@@ -1,3 +1,7 @@
+2000-08-18  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * g++.old-deja/g++.pt/typename27.C: New test.
+
 2000-08-17  Nathan Sidwell  <nathan@codesourcery.com>
 
        * g++.old-deja/g++.pt/crash44.C: Remove XFAIL. Add ERROR.
diff --git a/gcc/testsuite/g++.old-deja/g++.pt/typename27.C b/gcc/testsuite/g++.old-deja/g++.pt/typename27.C
new file mode 100644 (file)
index 0000000..1e3e6d6
--- /dev/null
@@ -0,0 +1,21 @@
+// Build don't link:
+// 
+// Copyright (C) 2000 Free Software Foundation, Inc.
+// Contributed by Nathan Sidwell 9 Aug 2000 <nathan@codesourcery.com>
+
+// bugs 173, 174 & 406 all ICE'd due to Koenig lookup involving
+// typename T::t.
+
+struct A
+{
+  typedef int type;
+};
+
+template<typename T> void same_key (T, typename T::type);
+
+template <class T> void foo (T *, void (*) (T, int));
+
+void baz (A *ptr)
+{
+  foo (ptr, same_key);
+}