This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Bug in 3.3.1 and 3.3.2 20031009
- From: Roberto Bagnara <bagnara at cs dot unipr dot it>
- To: gccbugs <gcc-bugs at gcc dot gnu dot org>
- Date: Fri, 10 Oct 2003 16:21:27 +0200
- Subject: Bug in 3.3.1 and 3.3.2 20031009
- Organization: Department of Mathematics, University of Parma, Italy
The following snippet compiles OK with mainline,
but does not with 3.3.1 and, unfortunately, with
3.3.2 20031009. Given that the release of 3.4
is still far, does anyone know a workaround?
template <typename T>
class C;
namespace N {
template <typename T>
void foo(T);
}
template <typename T>
class C {
public:
C();
friend void N::foo<>(T);
};
C<int> a;
Thanks in advance,
Roberto
--
Prof. Roberto Bagnara
Computer Science Group
Department of Mathematics, University of Parma, Italy
http://www.cs.unipr.it/~bagnara/
mailto:bagnara@cs.unipr.it