Bug in 3.3.1 and 3.3.2 20031009: any workaround?
Roberto Bagnara
bagnara@cs.unipr.it
Sun Oct 12 17:48:00 GMT 2003
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
More information about the Gcc
mailing list