public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37208]  New: C++0x deleted functions and SFINAE
@ 2008-08-23  4:59 dgregor at gcc dot gnu dot org
  2008-08-23  5:01 ` [Bug c++/37208] " dgregor at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-08-23  4:59 UTC (permalink / raw)
  To: gcc-bugs

Deleted functions don't cause SFINAE failures (or any kind of failure), but
they should.


-- 
           Summary: C++0x deleted functions and SFINAE
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dgregor at gcc dot gnu dot org


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


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

* [Bug c++/37208] C++0x deleted functions and SFINAE
  2008-08-23  4:59 [Bug c++/37208] New: C++0x deleted functions and SFINAE dgregor at gcc dot gnu dot org
@ 2008-08-23  5:01 ` dgregor at gcc dot gnu dot org
  2008-08-23  9:32 ` paolo dot carlini at oracle dot com
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: dgregor at gcc dot gnu dot org @ 2008-08-23  5:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dgregor at gcc dot gnu dot org  2008-08-23 04:59 -------
Created an attachment (id=16133)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16133&action=view)
Test case illustrating the problem


-- 


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


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

* [Bug c++/37208] C++0x deleted functions and SFINAE
  2008-08-23  4:59 [Bug c++/37208] New: C++0x deleted functions and SFINAE dgregor at gcc dot gnu dot org
  2008-08-23  5:01 ` [Bug c++/37208] " dgregor at gcc dot gnu dot org
@ 2008-08-23  9:32 ` paolo dot carlini at oracle dot com
  2008-08-26 16:49 ` jason at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: paolo dot carlini at oracle dot com @ 2008-08-23  9:32 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from paolo dot carlini at oracle dot com  2008-08-23 09:31 -------
Let's CC Jason...


-- 

paolo dot carlini at oracle dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jason at gcc dot gnu dot org


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


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

* [Bug c++/37208] C++0x deleted functions and SFINAE
  2008-08-23  4:59 [Bug c++/37208] New: C++0x deleted functions and SFINAE dgregor at gcc dot gnu dot org
  2008-08-23  5:01 ` [Bug c++/37208] " dgregor at gcc dot gnu dot org
  2008-08-23  9:32 ` paolo dot carlini at oracle dot com
@ 2008-08-26 16:49 ` jason at gcc dot gnu dot org
  2008-09-03  4:13 ` jason at gcc dot gnu dot org
  2008-09-17 16:15 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-08-26 16:49 UTC (permalink / raw)
  To: gcc-bugs



-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jason at gcc dot gnu dot org
                   |dot org                     |
             Status|UNCONFIRMED                 |ASSIGNED
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-08-26 16:48:00
               date|                            |


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


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

* [Bug c++/37208] C++0x deleted functions and SFINAE
  2008-08-23  4:59 [Bug c++/37208] New: C++0x deleted functions and SFINAE dgregor at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2008-08-26 16:49 ` jason at gcc dot gnu dot org
@ 2008-09-03  4:13 ` jason at gcc dot gnu dot org
  2008-09-17 16:15 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-09-03  4:13 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from jason at gcc dot gnu dot org  2008-09-03 04:11 -------
Subject: Bug 37208

Author: jason
Date: Wed Sep  3 04:10:27 2008
New Revision: 139926

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139926
Log:
        PR c++/37208
        * call.c (build_over_call): Make =delete work with SFINAE.
        * class.c (resolve_address_of_overloaded_function): Likewise.

        * cp-tree.h (struct lang_decl_flags): Rename threadprivate_p to
        threadprivate_or_deleted_p.
        (CP_DECL_THREADPRIVATE_P): Adjust.
        (DECL_DELETED_FN): Likewise.
        (SD_UNINITIALIZED, SD_INITIALIZED, SD_DEFAULTED): New macros.
        (SD_DELETED): New macro.
        * parser.c (cp_parser_init_declarator): Use them.
        * decl.c (start_decl): Use them.

        * decl2.c (mark_used): Give =deleted error even in sizeof.

        * typeck2.c (check_narrowing): Downgrade narrowing error to
        permerror.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/defaulted4.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/decl.c
    trunk/gcc/cp/decl2.c
    trunk/gcc/cp/parser.c
    trunk/gcc/cp/typeck2.c


-- 


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


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

* [Bug c++/37208] C++0x deleted functions and SFINAE
  2008-08-23  4:59 [Bug c++/37208] New: C++0x deleted functions and SFINAE dgregor at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2008-09-03  4:13 ` jason at gcc dot gnu dot org
@ 2008-09-17 16:15 ` jason at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: jason at gcc dot gnu dot org @ 2008-09-17 16:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jason at gcc dot gnu dot org  2008-09-17 16:14 -------
Fixed.


-- 

jason at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-09-17 16:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-08-23  4:59 [Bug c++/37208] New: C++0x deleted functions and SFINAE dgregor at gcc dot gnu dot org
2008-08-23  5:01 ` [Bug c++/37208] " dgregor at gcc dot gnu dot org
2008-08-23  9:32 ` paolo dot carlini at oracle dot com
2008-08-26 16:49 ` jason at gcc dot gnu dot org
2008-09-03  4:13 ` jason at gcc dot gnu dot org
2008-09-17 16:15 ` jason at gcc dot gnu dot 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).