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

* [Bug c++/50371] [C++0x] std::nullptr_t rejected as non-type template-parameter
  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 ` 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
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-22 17:28 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2011-09-22
         AssignedTo|unassigned at gcc dot       |paolo.carlini at oracle dot
                   |gnu.org                     |com
     Ever Confirmed|0                           |1


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

* [Bug c++/50371] [C++0x] std::nullptr_t rejected as non-type template-parameter
  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
  2 siblings, 0 replies; 4+ messages in thread
From: paolo at gcc dot gnu.org @ 2011-09-22 18:23 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2011-09-22 18:20:58 UTC ---
Author: paolo
Date: Thu Sep 22 18:20:53 2011
New Revision: 179096

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=179096
Log:
/cp
2011-09-22  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/50371
    * pt.c (invalid_nontype_parm_type_p): Handle NULLPTR_TYPE.

/testsuite
2011-09-22  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/50371
    * g++.dg/cpp0x/nullptr24.C: New.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/nullptr24.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/pt.c
    trunk/gcc/testsuite/ChangeLog


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

* [Bug c++/50371] [C++0x] std::nullptr_t rejected as non-type template-parameter
  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
  2 siblings, 0 replies; 4+ messages in thread
From: paolo.carlini at oracle dot com @ 2011-09-22 18:28 UTC (permalink / raw)
  To: gcc-bugs

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

Paolo Carlini <paolo.carlini at oracle dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.7.0

--- Comment #2 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-09-22 18:22:44 UTC ---
Done.


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