public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/53473] New: [C++11] static constexpr noexcept cannot be specialized
@ 2012-05-24 13:40 kretz at kde dot org
  2012-05-25  7:00 ` [Bug c++/53473] " daniel.kruegler at googlemail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: kretz at kde dot org @ 2012-05-24 13:40 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 53473
           Summary: [C++11] static constexpr noexcept cannot be
                    specialized
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: kretz@kde.org


The following testcase does not compile.

template<typename T> struct A
{
    static constexpr T foo() noexcept { return 0; }
};

template<> constexpr int A<int>::foo() noexcept { return 0; }

This would be a common pattern to specialize functions of std::numeric_limits,
but it's currently only possible to specialize the whole numeric_limits class.


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

end of thread, other threads:[~2013-11-18 15:28 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-05-24 13:40 [Bug c++/53473] New: [C++11] static constexpr noexcept cannot be specialized kretz at kde dot org
2012-05-25  7:00 ` [Bug c++/53473] " daniel.kruegler at googlemail dot com
2012-05-25  9:07 ` kretz at kde dot org
2012-05-25  9:24 ` daniel.kruegler at googlemail dot com
2012-05-25  9:59 ` redi at gcc dot gnu.org
2013-11-18 15:02 ` paolo.carlini at oracle dot com
2013-11-18 15:27 ` paolo.carlini at oracle dot com
2013-11-18 15:28 ` paolo 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).