public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/20200] New: typeid/demangle for multidimensional array returns wrong name
@ 2005-02-25  0:30 jody-atd-030903 at atdesk dot com
  2005-02-25  0:47 ` [Bug c++/20200] " jody-atd-030903 at atdesk dot com
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: jody-atd-030903 at atdesk dot com @ 2005-02-25  0:30 UTC (permalink / raw)
  To: gcc-bugs

Calling typeid(int[3][2]).name() returns the string "A3_A2_i" which I think is
correct (though I am unfamiliar with all the mangling rules).  However,
demangling this name returns "int[2][3]" so either the typeid().name() string is
wrong, or the demangled name is wrong.

Same behavior on 3.2 and 3.3.3.

See attached files.

-- 
           Summary: typeid/demangle for multidimensional array returns wrong
                    name
           Product: gcc
           Version: 3.3.3
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jody-atd-030903 at atdesk dot com
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20200


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

* [Bug c++/20200] typeid/demangle for multidimensional array returns wrong name
  2005-02-25  0:30 [Bug c++/20200] New: typeid/demangle for multidimensional array returns wrong name jody-atd-030903 at atdesk dot com
@ 2005-02-25  0:47 ` jody-atd-030903 at atdesk dot com
  2005-02-25  0:48 ` jody-atd-030903 at atdesk dot com
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: jody-atd-030903 at atdesk dot com @ 2005-02-25  0:47 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jody-atd-030903 at atdesk dot com  2005-02-24 19:57 -------
Created an attachment (id=8273)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8273&action=view)
Test program


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20200


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

* [Bug c++/20200] typeid/demangle for multidimensional array returns wrong name
  2005-02-25  0:30 [Bug c++/20200] New: typeid/demangle for multidimensional array returns wrong name jody-atd-030903 at atdesk dot com
  2005-02-25  0:47 ` [Bug c++/20200] " jody-atd-030903 at atdesk dot com
@ 2005-02-25  0:48 ` jody-atd-030903 at atdesk dot com
  2005-02-25  0:49 ` jody-atd-030903 at atdesk dot com
  2005-02-25  0:59 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jody-atd-030903 at atdesk dot com @ 2005-02-25  0:48 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jody-atd-030903 at atdesk dot com  2005-02-24 19:58 -------
Created an attachment (id=8274)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8274&action=view)
Preprocessed output (result of gcc -v -save-temps b.cpp)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20200


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

* [Bug c++/20200] typeid/demangle for multidimensional array returns wrong name
  2005-02-25  0:30 [Bug c++/20200] New: typeid/demangle for multidimensional array returns wrong name jody-atd-030903 at atdesk dot com
  2005-02-25  0:47 ` [Bug c++/20200] " jody-atd-030903 at atdesk dot com
  2005-02-25  0:48 ` jody-atd-030903 at atdesk dot com
@ 2005-02-25  0:49 ` jody-atd-030903 at atdesk dot com
  2005-02-25  0:59 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: jody-atd-030903 at atdesk dot com @ 2005-02-25  0:49 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From jody-atd-030903 at atdesk dot com  2005-02-24 19:59 -------
Created an attachment (id=8275)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8275&action=view)
stdout/stderr from running gcc -v -save-temps b.cpp > OUT 2>&1


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20200


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

* [Bug c++/20200] typeid/demangle for multidimensional array returns wrong name
  2005-02-25  0:30 [Bug c++/20200] New: typeid/demangle for multidimensional array returns wrong name jody-atd-030903 at atdesk dot com
                   ` (2 preceding siblings ...)
  2005-02-25  0:49 ` jody-atd-030903 at atdesk dot com
@ 2005-02-25  0:59 ` pinskia at gcc dot gnu dot org
  3 siblings, 0 replies; 5+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-25  0:59 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-24 20:01 -------
The demangler is wrong which by the way has been fixed in 3.4.0.
With a newer demangler I get:
int [3][2]

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID
   Target Milestone|---                         |3.4.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20200


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

end of thread, other threads:[~2005-02-24 20:01 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-25  0:30 [Bug c++/20200] New: typeid/demangle for multidimensional array returns wrong name jody-atd-030903 at atdesk dot com
2005-02-25  0:47 ` [Bug c++/20200] " jody-atd-030903 at atdesk dot com
2005-02-25  0:48 ` jody-atd-030903 at atdesk dot com
2005-02-25  0:49 ` jody-atd-030903 at atdesk dot com
2005-02-25  0:59 ` pinskia at gcc dot gnu dot org

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