public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
* [Bug c++/25325] enum class inherited from typedef of unsigned type does not handle values with high bit set [not found] <bug-25325-4717@http.sourceware.org/bugzilla/> @ 2020-04-03 19:57 ` ssbssa at sourceware dot org 2020-04-03 20:13 ` cvs-commit at gcc dot gnu.org 2020-04-03 20:15 ` ssbssa at sourceware dot org 2 siblings, 0 replies; 3+ messages in thread From: ssbssa at sourceware dot org @ 2020-04-03 19:57 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=25325 Hannes Domani <ssbssa at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ssbssa at sourceware dot org -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/25325] enum class inherited from typedef of unsigned type does not handle values with high bit set [not found] <bug-25325-4717@http.sourceware.org/bugzilla/> 2020-04-03 19:57 ` [Bug c++/25325] enum class inherited from typedef of unsigned type does not handle values with high bit set ssbssa at sourceware dot org @ 2020-04-03 20:13 ` cvs-commit at gcc dot gnu.org 2020-04-03 20:15 ` ssbssa at sourceware dot org 2 siblings, 0 replies; 3+ messages in thread From: cvs-commit at gcc dot gnu.org @ 2020-04-03 20:13 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=25325 --- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Hannes Domani <ssbssa@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=9e7c9a03eefafae549dafa8bec13232a780804ef commit 9e7c9a03eefafae549dafa8bec13232a780804ef Author: Hannes Domani <ssbssa@yahoo.de> Date: Fri Apr 3 21:38:31 2020 +0200 Fix attributes of typed enums of typedefs For this enum: typedef unsigned char byte; enum byte_enum : byte { byte_val = 128 }; The unsigned attribute is not set: (gdb) p byte_val $1 = -128 That's because it uses the attributes of the 'byte' typedef for the enum. So this changes it to use the attributes of the underlying 'unsigned char' instead. gdb/ChangeLog: 2020-04-03 Hannes Domani <ssbssa@yahoo.de> PR gdb/25325 * dwarf2/read.c (read_enumeration_type): Fix typed enum attributes. gdb/testsuite/ChangeLog: 2020-04-03 Hannes Domani <ssbssa@yahoo.de> PR gdb/25325 * gdb.cp/typed-enum.cc: New test. * gdb.cp/typed-enum.exp: New file. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/25325] enum class inherited from typedef of unsigned type does not handle values with high bit set [not found] <bug-25325-4717@http.sourceware.org/bugzilla/> 2020-04-03 19:57 ` [Bug c++/25325] enum class inherited from typedef of unsigned type does not handle values with high bit set ssbssa at sourceware dot org 2020-04-03 20:13 ` cvs-commit at gcc dot gnu.org @ 2020-04-03 20:15 ` ssbssa at sourceware dot org 2 siblings, 0 replies; 3+ messages in thread From: ssbssa at sourceware dot org @ 2020-04-03 20:15 UTC (permalink / raw) To: gdb-prs https://sourceware.org/bugzilla/show_bug.cgi?id=25325 Hannes Domani <ssbssa at sourceware dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Target Milestone|--- |10.1 Resolution|--- |FIXED --- Comment #2 from Hannes Domani <ssbssa at sourceware dot org> --- Fixed. -- You are receiving this mail because: You are on the CC list for the bug. ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-04-03 20:15 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- [not found] <bug-25325-4717@http.sourceware.org/bugzilla/> 2020-04-03 19:57 ` [Bug c++/25325] enum class inherited from typedef of unsigned type does not handle values with high bit set ssbssa at sourceware dot org 2020-04-03 20:13 ` cvs-commit at gcc dot gnu.org 2020-04-03 20:15 ` ssbssa at sourceware dot org
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).