public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/7224: g++ 3.x does not tecognize unused ambiguous inline member functions
@ 2002-07-11 15:36 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2002-07-11 15:36 UTC (permalink / raw)
  To: aaron, gcc-bugs, gcc-prs, mmitchel

Synopsis: g++ 3.x does not tecognize unused ambiguous inline member functions

State-Changed-From-To: analyzed->closed
State-Changed-By: mmitchel
State-Changed-When: Thu Jul 11 15:36:34 2002
State-Changed-Why:
    Fixed in GCC 3.1.1.

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


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

* Re: c++/7224: g++ 3.x does not tecognize unused ambiguous inline member functions
@ 2002-07-11  9:26 mmitchel
  0 siblings, 0 replies; 4+ messages in thread
From: mmitchel @ 2002-07-11  9:26 UTC (permalink / raw)
  To: aaron, gcc-bugs, gcc-prs, mmitchel, nobody

Synopsis: g++ 3.x does not tecognize unused ambiguous inline member functions

Responsible-Changed-From-To: unassigned->mmitchel
Responsible-Changed-By: mmitchel
Responsible-Changed-When: Thu Jul 11 09:26:52 2002
Responsible-Changed-Why:
    Working on a fix.

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


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

* Re: c++/7224: g++ 3.x does not tecognize unused ambiguous inline member functions
@ 2002-07-11  8:31 lerdsuwa
  0 siblings, 0 replies; 4+ messages in thread
From: lerdsuwa @ 2002-07-11  8:31 UTC (permalink / raw)
  To: aaron, gcc-bugs, gcc-prs, nobody

Synopsis: g++ 3.x does not tecognize unused ambiguous inline member functions

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Thu Jul 11 08:31:35 2002
State-Changed-Why:
    Confirmed.  A regression from 2.95.

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


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

* c++/7224: g++ 3.x does not tecognize unused ambiguous inline member functions
@ 2002-07-06 11:56 aaron
  0 siblings, 0 replies; 4+ messages in thread
From: aaron @ 2002-07-06 11:56 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7224
>Category:       c++
>Synopsis:       g++ 3.x does not tecognize unused ambiguous inline member functions
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          accepts-illegal
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 06 11:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Aaron Isotton
>Release:        gcc version 3.1.1 20020606 (Debian prerelease)
>Organization:
>Environment:
i686 Linux 2.5.25
>Description:
The following code compiles:

struct foo
{
    void bar() {}
    int bar() {return 0;}
};

int main() {}

It should generate an error as two functions differing only in their return value are not permitted.

If the functions are not declared inline (i.e. outside the class) the assembler complains because the two functions have the same name; if the functions are used, a proper error message is emitted.

The same happens with g++ 3.0; g++ 2.95 recognizes the problem and emits an error message.
>How-To-Repeat:
Compile this snippet with no compiler flags:


struct foo
{
    void bar() {
    }

    int bar() {
        return 0;
    }
};

int main() {}

>Fix:

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


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

end of thread, other threads:[~2002-07-11 22:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-11 15:36 c++/7224: g++ 3.x does not tecognize unused ambiguous inline member functions mmitchel
  -- strict thread matches above, loose matches on Subject: below --
2002-07-11  9:26 mmitchel
2002-07-11  8:31 lerdsuwa
2002-07-06 11:56 aaron

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