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 gdb/19423] New: __int128 conversion towards "const __int128 &" should be allowed


https://sourceware.org/bugzilla/show_bug.cgi?id=19423

            Bug ID: 19423
           Summary: __int128  conversion towards "const __int128 &" should
                    be allowed
           Product: gdb
           Version: 7.10
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: Claude at renegat dot net
  Target Milestone: ---

If a method has an argument of type "const __int128 &", then calling it with an
argument of type __int128 produces the error:

  That operation is not available on integers of more than 8 bytes.

I understand that integer expressions (except direct printing) are limited to
64 bits integers at most, but converting an __int128 towards a constant
__int128 reference should be allowed.

Copy-pasted example:

(gdb) ptype ::my_function
type = void (const __int128 &)
(gdb) ptype working_argument
type = const __int128 &
(gdb) ptype broken_argument
type = __int128
(gdb) call ::my_function(working_argument)
....XX....
...XXX...X
...XXX...X
.XXX.XXXXX
..X..XX.X.
...XX.XX..
....XXX.X.
.....XX...
...XX..X..
...XXXXXX.
(gdb) call ::my_function(broken_argument)
That operation is not available on integers of more than 8 bytes.

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