public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: libstdc++/7986: Problems with demangling (__cxa_demangle())
@ 2003-02-27 19:31 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2003-02-27 19:31 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, johnb

Synopsis: Problems with demangling (__cxa_demangle())

State-Changed-From-To: analyzed->feedback
State-Changed-By: bkoz
State-Changed-When: Thu Feb 27 19:31:13 2003
State-Changed-Why:
    Fixed in mainline.

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


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

* Re: libstdc++/7986: Problems with demangling (__cxa_demangle())
@ 2003-02-28  0:13 neroden
  0 siblings, 0 replies; 4+ messages in thread
From: neroden @ 2003-02-28  0:13 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, johnb

Synopsis: Problems with demangling (__cxa_demangle())

State-Changed-From-To: feedback->closed
State-Changed-By: neroden
State-Changed-When: Fri Feb 28 00:13:23 2003
State-Changed-Why:
    Fixed in mainline = closed != feedback.

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


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

* Re: libstdc++/7986: Problems with demangling (__cxa_demangle())
@ 2002-11-05 15:42 bkoz
  0 siblings, 0 replies; 4+ messages in thread
From: bkoz @ 2002-11-05 15:42 UTC (permalink / raw)
  To: bkoz, gcc-bugs, gcc-prs, johnb, nobody

Synopsis: Problems with demangling (__cxa_demangle())

Responsible-Changed-From-To: unassigned->bkoz
Responsible-Changed-By: bkoz
Responsible-Changed-When: Tue Nov  5 15:42:06 2002
Responsible-Changed-Why:
    Mine.
State-Changed-From-To: open->analyzed
State-Changed-By: bkoz
State-Changed-When: Tue Nov  5 15:42:06 2002
State-Changed-Why:
    How do you find this stuff?
    
    ;)
    
    These are all confirmed bugs. There was some work done to 
    fix these problems in the demangler, but it was abandonded. At some point, this work will resume, or the current demangling code will be replaced. 
    
    -benjamin

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


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

* libstdc++/7986: Problems with demangling (__cxa_demangle())
@ 2002-09-20  4:46 johnb
  0 siblings, 0 replies; 4+ messages in thread
From: johnb @ 2002-09-20  4:46 UTC (permalink / raw)
  To: gcc-gnats


>Number:         7986
>Category:       libstdc++
>Synopsis:       Problems with demangling (__cxa_demangle())
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Sep 20 04:46:00 PDT 2002
>Closed-Date:
>Last-Modified:
>Originator:     johnb@stl.sarov.ru
>Release:        gcc 3.2, gcc 3.1
>Organization:
>Environment:
Red Hat Linux 8.0beta
>Description:
I used a simple program which calls __cxa_demangle function. These mangled names were demangled wrong:
_Z1fA37_iPS_ -> f(int[37], int[37]*), should be: f(int[37], int (*) [37])
_Z1fM1AFivEPS0_ -> f(int (A::*)(), int ()()*), should be: f(int (A::*)(), int (*)())
_Z1fPFPA1_ivE -> f(int (*) [1] (*)()), should be: f(int (*(*)()) [1])
_Z1fPKM1AFivE -> f(int (A::*)() const*), should be: f(int (A::* const*)())
_Z1jM1AFivEPS1_ -> j(int (A::*)(), int (A::*)()*), should be: j(int (A::*)(), int (A::**)())
_Z1sPA37_iPS0_ -> s(int (*) [37], int (*) [37]*), should be: s(int (*) [37], int (**) [37])
_Z3fooA30_A_i -> foo(int[][30]), should be: foo(int[30][])
_Z3kooPA28_A30_i -> koo(int[30] (*) [28]), should be: koo(int (*) [28][30])
_ZlsRKU3fooU4bart1XS0_ -> operator<<(foo bart X const&, bart X), should be: operator<<(X const foo bart&, X const foo bart)

And in these cases __cxa_demangle() returned -2 (Invalid mangled name):
_Z1fM1AKFivE -> _Z1fM1AKFivE, should be: f(int (A::*)() const)
_Z3absILd1c1f1496f8a44219EEvv -> _Z3absILd1c1f1496f8a44219EEvv, should be: void abs<3.14159e-173>()
_Z3absILd40092acd9e83e426EEvv -> _Z3absILd40092acd9e83e426EEvv, should be: void abs<3.1459>()
_Z3absILe08042191a6cc56a2fe117becEEvv -> _Z3absILe08042191a6cc56a2fe117becEEvv, should be: void abs<1.234e-2345l>()
_Z3absILe804bfff8000000000000000EEvv -> _Z3absILe804bfff8000000000000000EEvv, should be: void abs<-1l>()
_Z3absILf4016147bEEvv -> _Z3absILf4016147bEEvv, should be: void abs<2.345f>()
_Z3absILfc1800000EEvv -> _Z3absILfc1800000EEvv, should be: void abs<-16f>()
>How-To-Repeat:
Feed those mangled names to __cxa_demangle() function and check the results of demangling.
>Fix:

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


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

end of thread, other threads:[~2003-02-28  0:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-27 19:31 libstdc++/7986: Problems with demangling (__cxa_demangle()) bkoz
  -- strict thread matches above, loose matches on Subject: below --
2003-02-28  0:13 neroden
2002-11-05 15:42 bkoz
2002-09-20  4:46 johnb

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