public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/52702] New: [C++11] std::is_trivially_destructible is missing
@ 2012-03-24 17:44 daniel.kruegler at googlemail dot com
  2012-04-12 12:22 ` [Bug libstdc++/52702] " paolo.carlini at oracle dot com
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-03-24 17:44 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52702
           Summary: [C++11] std::is_trivially_destructible is missing
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com


gcc 4.8.0 20120318 (experimental) in C++11 mode rejects the following code:

//-----
#include <type_traits>

struct pod {};
struct non_pod { ~non_pod(); };

static_assert(std::is_trivially_destructible<pod>::value, "");
static_assert(std::is_trivially_destructible<int>::value, "");
static_assert(!std::is_trivially_destructible<non_pod>::value, "");
//-----

due to the missing definition of the is_trivially_destructible type trait.

This should not be much work, because the TR1 trait has_trivial_destructor does
exist and uses the __has_trivial_destructor intrinsic and is_destructible is
also provided.


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

end of thread, other threads:[~2012-04-22  8:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-24 17:44 [Bug libstdc++/52702] New: [C++11] std::is_trivially_destructible is missing daniel.kruegler at googlemail dot com
2012-04-12 12:22 ` [Bug libstdc++/52702] " paolo.carlini at oracle dot com
2012-04-15 13:44 ` paolo.carlini at oracle dot com
2012-04-15 14:06 ` daniel.kruegler at googlemail dot com
2012-04-15 14:30 ` paolo.carlini at oracle dot com
2012-04-15 17:05 ` paolo.carlini at oracle dot com
2012-04-15 17:48 ` paolo.carlini at oracle dot com
2012-04-15 23:35 ` paolo at gcc dot gnu.org
2012-04-22  8:06 ` paolo.carlini at oracle dot com

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).