public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/52562] New: [C++11] Most type_info functions not noexcept
@ 2012-03-12 11:57 daniel.kruegler at googlemail dot com
  2012-03-12 12:02 ` [Bug libstdc++/52562] " redi at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2012-03-12 11:57 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 52562
           Summary: [C++11] Most type_info functions not noexcept
    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 20120302 (experimental) in C++11 mode rejects the following program:

//------
#include <typeinfo>

template<class T> T& lval() noexcept;

static_assert(noexcept(lval<std::type_info>().name()), "");
static_assert(noexcept(lval<std::type_info>().before(lval<std::type_info>())),
"");
static_assert(noexcept(lval<std::type_info>() == lval<std::type_info>()), "");
static_assert(noexcept(lval<std::type_info>() != lval<std::type_info>()), "");
//------

All four static assertions fail, because the corresponding member functions are
not declared as noexcept contrary to the library specification in 18.7.1
[type.info].


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

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

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 11:57 [Bug libstdc++/52562] New: [C++11] Most type_info functions not noexcept daniel.kruegler at googlemail dot com
2012-03-12 12:02 ` [Bug libstdc++/52562] " redi at gcc dot gnu.org
2012-03-12 12:54 ` paolo.carlini at oracle dot com
2012-03-12 13:16 ` paolo.carlini at oracle dot com
2012-03-12 13:44 ` paolo.carlini at oracle dot com
2012-03-12 13:50 ` paolo.carlini at oracle dot com
2012-03-12 14:07 ` daniel.kruegler at googlemail dot com
2012-03-12 15:03 ` paolo.carlini at oracle dot com
2012-03-12 15:13 ` paolo at gcc dot gnu.org
2012-03-12 15:47 ` daniel.kruegler at googlemail dot com
2012-03-12 16:09 ` paolo.carlini at oracle dot com
2012-04-22  8:04 ` 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).