OSDN Git Service

* g++.old-deja/g++.other/lookup5.C: New test. Not sure the
authoroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 1998 18:29:12 +0000 (18:29 +0000)
committeroliva <oliva@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 25 Nov 1998 18:29:12 +0000 (18:29 +0000)
problem is actually related with name lookup, but so what? :-)

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@23877 138bc75d-0d04-0410-961f-82ee72b054a4

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

index bed4a4c..07fce72 100644 (file)
@@ -1,5 +1,8 @@
 1998-11-26  Alexandre Oliva  <oliva@dcc.unicamp.br>
 
+       * g++.old-deja/g++.other/lookup5.C: New test.  Not sure the
+       problem is actually related with name lookup, but so what? :-)
+
        * g++.old-deja/g++.pt/friend37.C: New test.
 
 1998-11-25  Dave Love  <d.love@dl.ac.uk>
diff --git a/gcc/testsuite/g++.old-deja/g++.other/lookup5.C b/gcc/testsuite/g++.old-deja/g++.other/lookup5.C
new file mode 100644 (file)
index 0000000..3924dcb
--- /dev/null
@@ -0,0 +1,9 @@
+// Build don't link:
+// Simplified from bug report by Paris Smaragdis <paris@media.mit.edu>
+
+template <class T> class vector {};
+class foo {};
+int main() {
+        foo f;
+        f.vector(); // gets bogus error - ICE - XFAIL *-*-*
+}