Bug 8922

Summary: Double-colon not understood in typecast
Product: gdb Reporter: marko
Component: c++Assignee: Not yet assigned to anyone <unassigned>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gdb-prs
Priority: P3    
Version: 6.2   
Target Milestone: ---   
Host: Target:
Build: Last reconfirmed:
Attachments: koe.C

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 ***