public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/50371] New: [C++0x] std::nullptr_t rejected as non-type template-parameter
@ 2011-09-13  0:19 daniel.kruegler at googlemail dot com
  2011-09-22 17:28 ` [Bug c++/50371] " paolo.carlini at oracle dot com
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: daniel.kruegler at googlemail dot com @ 2011-09-13  0:19 UTC (permalink / raw)
  To: gcc-bugs

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

             Bug #: 50371
           Summary: [C++0x] std::nullptr_t rejected as non-type
                    template-parameter
    Classification: Unclassified
           Product: gcc
           Version: 4.7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: daniel.kruegler@googlemail.com
                CC: jason@redhat.com


This is a placeholder entry to add support for std::nullptr_t as non-type
template-parameter (14.1 p4).

gcc 4.7.0 20110903 (experimental) in C++0x mode rejects the following code:

template<decltype(nullptr)>
struct nt;

"error: 'std::nullptr_t' is not a valid type for a template constant parameter"

The code should be accepted.


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

end of thread, other threads:[~2011-09-22 18:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-13  0:19 [Bug c++/50371] New: [C++0x] std::nullptr_t rejected as non-type template-parameter daniel.kruegler at googlemail dot com
2011-09-22 17:28 ` [Bug c++/50371] " paolo.carlini at oracle dot com
2011-09-22 18:23 ` paolo at gcc dot gnu.org
2011-09-22 18:28 ` 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).