[Bug c++/34338] New: error: no matching function for call to 'C::count()'

2007-12-04 Thread gray_song at yahoo dot com
ReportedBy: gray_song at yahoo dot com http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34338

[Bug c++/34338] error: no matching function for call to 'C::count()'

2007-12-04 Thread gray_song at yahoo dot com
--- Comment #1 from gray_song at yahoo dot com 2007-12-04 21:01 --- If change C::count(int l) definition to C::count_c(int l) It works fine. -- gray_song at yahoo dot com changed: What|Removed |Added

[Bug c++/34338] error: no matching function for call to 'C::count()'

2007-12-04 Thread gray_song at yahoo dot com
--- Comment #3 from gray_song at yahoo dot com 2007-12-04 23:40 --- (In reply to comment #2) The error is correct. The count without any arguments hide the one with (the other way is true too). You need to add using A::count in the class C and using C::count in class D. Change

[Bug c++/34338] error: no matching function for call to 'C::count()'

2007-12-04 Thread gray_song at yahoo dot com
--- Comment #5 from gray_song at yahoo dot com 2007-12-05 06:01 --- (In reply to comment #4) No, I mean add the following statement: using A::count; to the class. Thank you very much for replying. I tried to add the using A::count; to class C. But it didn't work. -- http