More Membertemplate failures.
Klaus-Georg Adams
Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Mon Nov 23 01:56:00 GMT 1998
Hi Jason,
I see you have fixed a bug-report which I submitted Friday as
gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C. It hasn't shown up on
the list yet, so I quote it again. Just now however I have found
another one in the same league which seems not to be covered by your
1998-11-21 change (memtemp81.C).
-- Thanks, kga
-------------------------------------------------------------------------
Klaus-Georg Adams Email: Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Institut f. Anorg. Chemie, Lehrstuhl II Tel: 49(0)721 608 3485
Universität Karlsruhe, D-76128 Karlsruhe
-------------------------------------------------------------------------
--- /dev/null Mon Jul 18 01:46:18 1994
+++ gcc/testsuite/g++.old-deja/g++.pt/memtemp81.C Mon Nov 23 10:43:52 1998
@@ -0,0 +1,12 @@
+// Build don't link:
+
+struct foo {
+ template<typename T> T bar() { return staticbar<T>( this ); }
+ template<typename T> static T staticbar( foo* ) { return 0; }
+};
+
+void f()
+{
+ foo t;
+ int k = t.bar<int>();
+}
--- /dev/null Mon Jul 18 01:46:18 1994
+++ gcc/testsuite/g++.old-deja/g++.pt/memtemp80.C Fri Nov 20 17:28:09 1998
@@ -0,0 +1,16 @@
+// Build don't link:
+
+template<typename T> T baz() { return 0; }
+
+struct foo {
+ template<typename T> static T staticbar() { return 0; }
+ template<typename T> T bar() { return 0; }
+};
+
+void f()
+{
+ foo t;
+ int i = baz<int>();
+ int j = foo::staticbar<int>();
+ int k = t.bar<int>();
+}
More information about the Gcc-bugs
mailing list