Membertemplate bug since your 1998-10-19 change.

Klaus-Georg Adams Klaus-Georg.Adams@chemie.uni-karlsruhe.de
Wed Oct 21 10:14:00 GMT 1998


The appended testcase generates an error, and I think it shouldn't
(and it used to compile ok):

memtemp79.C:5: static member function `void foo::bar() const' declared const

-- 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	Tue May  5 22:32:27 1998
+++ gcc/testsuite/g++.old-deja/g++.pt/memtemp79.C	Wed Oct 21 19:05:52 1998
@@ -0,0 +1,6 @@
+// Build don't link:
+
+struct foo {
+	template<typename T> static void bar( foo* );
+	template<typename T> void bar() const;
+};



More information about the Gcc-bugs mailing list