public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* c++/7221: wrong linkage in member functions of typedef-named classes
@ 2002-07-06  9:26 aoliva
  0 siblings, 0 replies; 2+ messages in thread
From: aoliva @ 2002-07-06  9:26 UTC (permalink / raw)
  To: gcc-gnats; +Cc: mark


>Number:         7221
>Category:       c++
>Synopsis:       wrong linkage in member functions of typedef-named classes
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Jul 06 09:26:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     aoliva@redhat.com
>Release:        gcc-3.1, as well as many (all?) older releases and newer snapshots
>Organization:
>Environment:
any
>Description:
Given:

  typedef struct {
    void f();
  } S;

GCC will assume f has no linkage, because at the point of the declaration, the class is anonymous.

Details at http://gcc.gnu.org/ml/gcc-patches/2002-07/threads.html#00266
>How-To-Repeat:
Testcase is g++.old-deja/g++.oliva/linkage1.C
>Fix:

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


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

* Re: c++/7221: wrong linkage in member functions of typedef-named classes
@ 2002-12-19 18:45 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2002-12-19 18:45 UTC (permalink / raw)
  To: aoliva, gcc-bugs, gcc-prs, mark, nobody

Synopsis: wrong linkage in member functions of typedef-named classes

State-Changed-From-To: open->analyzed
State-Changed-By: bangerth
State-Changed-When: Thu Dec 19 18:45:21 2002
State-Changed-Why:
    Confirmed. Since 3.0, the symbols's name is at least
    correctly named S::f, but it still has internal linkage
    as of today.

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


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

end of thread, other threads:[~2002-12-20  2:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-07-06  9:26 c++/7221: wrong linkage in member functions of typedef-named classes aoliva
2002-12-19 18:45 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).