public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/12563] New: typename is misparsed as default constructor within a member function
@ 2011-03-10 12:35 andre.poenitz at nokia dot com
  2012-11-28 17:24 ` [Bug c++/12563] " tromey at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: andre.poenitz at nokia dot com @ 2011-03-10 12:35 UTC (permalink / raw)
  To: gdb-prs

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.


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

* [Bug c++/12563] typename is misparsed as default constructor within a member function
  2011-03-10 12:35 [Bug c++/12563] New: typename is misparsed as default constructor within a member function andre.poenitz at nokia dot com
@ 2012-11-28 17:24 ` tromey at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: tromey at redhat dot com @ 2012-11-28 17:24 UTC (permalink / raw)
  To: gdb-prs

http://sourceware.org/bugzilla/show_bug.cgi?id=12563

Tom Tromey <tromey at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |tromey at redhat dot com
         Resolution|                            |DUPLICATE

--- Comment #1 from Tom Tromey <tromey at redhat dot com> 2012-11-28 17:24:37 UTC ---
Dup.

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

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


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

end of thread, other threads:[~2012-11-28 17:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-10 12:35 [Bug c++/12563] New: typename is misparsed as default constructor within a member function andre.poenitz at nokia dot com
2012-11-28 17:24 ` [Bug c++/12563] " tromey at redhat dot com

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