public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/6548: Incorrect mangling for extern C and namespace
@ 2002-06-05  7:57 lerdsuwa
  0 siblings, 0 replies; 2+ messages in thread
From: lerdsuwa @ 2002-06-05  7:57 UTC (permalink / raw)
  To: gcc-bugs, gcc-prs, nobody, rearnsha, sdouglass

Synopsis: Incorrect mangling for extern C and namespace

State-Changed-From-To: open->analyzed
State-Changed-By: lerdsuwa
State-Changed-When: Wed Jun  5 07:57:09 2002
State-Changed-Why:
    Confirmed.

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


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

* c++/6548: Incorrect mangling for extern C and namespace
@ 2002-05-03  7:56 sdouglass
  0 siblings, 0 replies; 2+ messages in thread
From: sdouglass @ 2002-05-03  7:56 UTC (permalink / raw)
  To: gcc-gnats; +Cc: rearnsha


>Number:         6548
>Category:       c++
>Synopsis:       Incorrect mangling for extern C and namespace
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri May 03 07:56:01 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     Scott Douglass
>Release:        gcc-3.0.4 and later (still present in trunk)
>Organization:
>Environment:
All
>Description:
Neither N::x' nor 'N::y' should be mangled in the example
below but 'N::x' does get mangled.  The work-around is to use
the variable in a non-inline function as is done with 'N::y'.

This example works in 2.95.2, because the namespace is never
mangled by 2.95.2.
>How-To-Repeat:
Compile the following code:

extern "C" {
  namespace N { extern int x,y;}
}

int N::x = 42; // I'm incorrectly mangled

int f() { return N::y; }

int N::y = 43; // I'm correctly not mangled
>Fix:
Unknown
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2002-06-05 14:57 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-06-05  7:57 c++/6548: Incorrect mangling for extern C and namespace lerdsuwa
  -- strict thread matches above, loose matches on Subject: below --
2002-05-03  7:56 sdouglass

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