This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Bug in 3.3.1 and 3.3.2 20031009: any workaround?



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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]