Bug 8922 - Double-colon not understood in typecast
Summary: Double-colon not understood in typecast
Status: RESOLVED DUPLICATE of bug 8693
Alias: None
Product: gdb
Classification: Unclassified
Component: c++ (show other bugs)
Version: 6.2
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-11-22 22:38 UTC by marko
Modified: 2010-01-22 21:09 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:
Last reconfirmed:


Attachments
koe.C (98 bytes, application/octet-stream)
, marko
Details

Note You need to log in before you can comment on or make changes to this bug.
Description marko 2004-11-22 22:38:01 UTC
[Converted from Gnats 1817]

If a class is defined in a namespace the resulting typedef cannot be used in typecasts. Instead, gdb complains about a syntax error.

Release:
6.2

Environment:
i686-pc-linux-gnu
gcc version 3.2.2 20030222 (Red Hat Linux 3.2.2-5)

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
Comment 1 Tom Tromey 2010-01-22 21:09:05 UTC

*** This bug has been marked as a duplicate of 8693 ***