This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/60565] Bogus not-in-scope error
- From: "redi at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 18 Mar 2014 13:37:47 +0000
- Subject: [Bug c++/60565] Bogus not-in-scope error
- Auto-submitted: auto-generated
- References: <bug-60565-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60565
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to patrick from comment #1)
> Er, sorry, the call to "foo ()" within main ought to be "B::foo ()".
OK, in that case you need to fix the declaration of B::foo() if you want to
call it. I think G++ is ignoring the inconsistent declaration of B::foo(). I'm
not sure if that's correct, or whether it should give an error at that point.