This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/12563] New: typename is misparsed as default constructorwithin a member function
- From: "andre.poenitz at nokia dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 10 Mar 2011 12:35:26 +0000
- Subject: [Bug c++/12563] New: typename is misparsed as default constructorwithin a member function
- Auto-submitted: auto-generated
http://sourceware.org/bugzilla/show_bug.cgi?id=12563
Summary: typename is misparsed as default constructor within a
member function
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned@sourceware.org
ReportedBy: andre.poenitz@nokia.com
The expressions
gdb.parse_and_eval('0xdeadbeaf').cast(gdb.lookup_type('A').pointer())
and
gdb.parse_and_eval('(A*)0xdeadbeaf')
do not create the same result in gdb 7.2 and current CVS when used inside a
member function of type A.
The first one results in a pointer-to-A with value 0xdeadbeef, the second
results in a parse error (as does plain 'print (A*)0xdeadbeaf') and it looks
like 'A' is mis-read as A::A() in this case.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.