This is the mail archive of the gcc-bugs@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]

No Subject


=== cut ==
template <class T> 
struct A {
  void a() {}
};

template <class T> 
struct B: public A<T> {
  void a( int ) {}
};

main()
{
  B<int>().a();
}
=== cut ==

egcs_bug.cc: In function `int main()':
egcs_bug.cc:13: no matching function for call to `B<int>::a ()'
egcs_bug.cc:8: candidates are: B<int>::a(int)

Reading specs from /usr/lib/gcc-lib/i586-pc-linux-gnu/egcs-2.90.27/specs
gcc version egcs-2.90.27 980315 (egcs-1.0.2 release)



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