This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/12563] New: typename is misparsed as default constructorwithin a member function


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]