This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug c++/21323] GDB thinks char16_t and char32_t are signed in C++
- From: "jwakely.gcc at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 29 Mar 2017 17:54:39 +0000
- Subject: [Bug c++/21323] GDB thinks char16_t and char32_t are signed in C++
- Auto-submitted: auto-generated
- References: <bug-21323-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21323
--- Comment #4 from Jonathan Wakely <jwakely.gcc at gmail dot com> ---
Oops, I meant to say I get it with F24's system gcc and also trunk (the two
versions shown in the previous comment).
Ah, but I don't see this with GCC 5.4.1 and earlier:
tmp$ ~/gcc/5.4.0/bin/g++ c.c -g
tmp$ gdb -q -ex "br 6" -ex run -ex "p u16" -ex "p u32" -ex cont -ex quit a.out
Reading symbols from a.out...done.
Breakpoint 1 at 0x400597: file c.c, line 6.
Starting program: /tmp/a.out
Breakpoint 1, main () at c.c:6
6 return 0;
$1 = 61440 u''
$2 = 4026531840 U'\xf0000000'
Continuing.
[Inferior 1 (process 22097) exited normally]
tmp$
tmp$ ~/gcc/6.1.0/bin/g++ c.c -g
tmp$ gdb -q -ex "br 6" -ex run -ex "p u16" -ex "p u32" -ex cont -ex quit a.out
Reading symbols from a.out...done.
Breakpoint 1 at 0x400597: file c.c, line 6.
Starting program: /tmp/a.out
Breakpoint 1, main () at c.c:6
6 return 0;
$1 = -4096 u''
$2 = -268435456 U'\xf0000000'
Continuing.
[Inferior 1 (process 22120) exited normally]
--
You are receiving this mail because:
You are on the CC list for the bug.