public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/4854: GCC 3.0.2 fails to flag ambiguous method definitions
@ 2001-11-01  8:42 mkarras110
  0 siblings, 0 replies; 3+ messages in thread
From: mkarras110 @ 2001-11-01  8:42 UTC (permalink / raw)
  To: gcc-gnats


>Number:         4854
>Category:       c++
>Synopsis:       GCC 3.0.2 fails to flag ambiguous method definitions
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Nov 11 22:56:01 PST 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Arras
>Release:        3.0.2
>Organization:
>Environment:
Linux 2.4 (i386)
>Description:
Gcc 3.0.2 (i686-pc-linux-gnu) has a quirk in which it does not
catch ambiguous method definitions.  If compiling class simple
(with -c), 3.0.2 will fail in the assembly stage, citing
"Error: Symbol xyzfuncEv already defined."  Inlining avoids
the quirk.

Gcc 2.96-MDK8.1 does the right thing by informing the user.


class simple
{
  public:
    void func();
    int func();
};

void simple::func() { }

int simple::func() { return 0; }


Michael Arras
mkarras110@yahoo.com
>How-To-Repeat:
g++ -c simple.cxx
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/4854: GCC 3.0.2 fails to flag ambiguous method definitions
@ 2002-10-31 13:49 bangerth
  0 siblings, 0 replies; 3+ messages in thread
From: bangerth @ 2002-10-31 13:49 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mkarras110, nobody

Synopsis: GCC 3.0.2 fails to flag ambiguous method definitions

State-Changed-From-To: analyzed->closed
State-Changed-By: bangerth
State-Changed-When: Thu Oct 31 13:49:09 2002
State-Changed-Why:
    Now reports ambiguity.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4854


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: c++/4854: GCC 3.0.2 fails to flag ambiguous method definitions
@ 2002-06-08  7:47 lerdsuwa
  0 siblings, 0 replies; 3+ messages in thread
From: lerdsuwa @ 2002-06-08  7:47 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, mkarras110, nobody

Synopsis: GCC 3.0.2 fails to flag ambiguous method definitions

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Sat Jun  8 07:47:46 2002
State-Changed-Why:
    Confirmed.

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=4854


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-31 21:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-01  8:42 c++/4854: GCC 3.0.2 fails to flag ambiguous method definitions mkarras110
2002-06-08  7:47 lerdsuwa
2002-10-31 13:49 bangerth

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).