public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/16892] New: superfluous error message
@ 2004-08-06 2:00 igodard at pacbell dot net
2004-08-06 2:04 ` [Bug c++/16892] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: igodard at pacbell dot net @ 2004-08-06 2:00 UTC (permalink / raw)
To: gcc-bugs
class B1 {
void Foo() {}
};
struct B2 {
void Foo() {}
}
struct D : public B1, public B2 {
void Bar() { Foo(); }
};
int main() {
D d;
return 0;
}
gets you:
foo.cc: In member function `void D::Bar()':
foo.cc:8: error: reference to `Foo' is ambiguous
foo.cc:5: error: candidates are: void B2::Foo()
foo.cc:2: error: void B1::Foo()
foo.cc:8: error: `Foo' undeclared (first use this function)
foo.cc:8: error: (Each undeclared identifier is reported only once for each function it appears in.)
foo.cc: At global scope:
foo.cc:9: error: multiple types in one declaration
The error on line 8 may or may not be an error (see bug #16891) but, the one reported on line 9 is bogus.
Ivan
--
Summary: superfluous error message
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: igodard at pacbell dot net
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16892
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/16892] superfluous error message
2004-08-06 2:00 [Bug c++/16892] New: superfluous error message igodard at pacbell dot net
@ 2004-08-06 2:04 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-08-06 2:04 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-08-06 02:04 -------
No it is not, you missed the semicolon after the defintion of the struct B2.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16892
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-08-06 2:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-06 2:00 [Bug c++/16892] New: superfluous error message igodard at pacbell dot net
2004-08-06 2:04 ` [Bug c++/16892] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).