public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/60333] New: type_traits make_signed, make_unsigned missing support for long long enumerations
@ 2014-02-24 21:52 harald at gigawatt dot nl
  2014-09-19 11:14 ` [Bug libstdc++/60333] " redi at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: harald at gigawatt dot nl @ 2014-02-24 21:52 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60333

            Bug ID: 60333
           Summary: type_traits make_signed, make_unsigned missing support
                    for long long enumerations
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: harald at gigawatt dot nl

#include <type_traits>
enum E { e = 0x100000000 };
static_assert(sizeof(std::make_signed<E>::type) == sizeof(E), "");
static_assert(sizeof(std::make_unsigned<E>::type) == sizeof(E), "");

This fails on x86, because make_signed and make_unsigned never return a larger
type than (un)signed long.


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

end of thread, other threads:[~2015-04-28 13:28 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-24 21:52 [Bug libstdc++/60333] New: type_traits make_signed, make_unsigned missing support for long long enumerations harald at gigawatt dot nl
2014-09-19 11:14 ` [Bug libstdc++/60333] " redi at gcc dot gnu.org
2015-04-08 16:01 ` redi at gcc dot gnu.org
2015-04-28 13:22 ` redi at gcc dot gnu.org
2015-04-28 13:28 ` redi at gcc dot gnu.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).