c++/1817: Double-colon not understood in typecast
marko@pacujo.net
marko@pacujo.net
Mon Nov 22 22:38:00 GMT 2004
>Number: 1817
>Category: c++
>Synopsis: Double-colon not understood in typecast
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Nov 22 22:38:01 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator: Marko Rauhamaa
>Release: 6.2
>Organization:
>Environment:
i686-pc-linux-gnu
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)
>Description:
If a class is defined in a namespace the resulting typedef cannot be used in typecasts. Instead, gdb complains about a syntax error.
>How-To-Repeat:
Compile with -ggdb. Start gdb.
The command "ptype X::Y" works. However, this command results in a syntax error:
p (X::Y *) 0
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/x-c++; name="koe.C"
Content-Transfer-Encoding: base64
Content-Disposition: attachment; filename="koe.C"
bmFtZXNwYWNlIFggewogICAgc3RydWN0IFkgewogICAgICAgIGludCB6OwogICAgfTsKCiAgICBZ
IHo7Cn07CgppbnQgbWFpbihpbnQgYXJnYyxjb25zdCBjaGFyICpjb25zdCAqYXJndikKewogICAg
cmV0dXJuIDA7Cn0K
More information about the Gdb-prs
mailing list