[Bug c++/37208] C++0x deleted functions and SFINAE

2008-09-17 Thread jason at gcc dot gnu dot org


--- 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



[Bug c++/37208] C++0x deleted functions and SFINAE

2008-09-02 Thread jason at gcc dot gnu dot org


--- 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=gccview=revrev=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



[Bug c++/37208] C++0x deleted functions and SFINAE

2008-08-26 Thread jason at gcc dot gnu dot org


-- 

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|-00-00 00:00:00 |2008-08-26 16:48:00
   date||


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



[Bug c++/37208] C++0x deleted functions and SFINAE

2008-08-23 Thread paolo dot carlini at oracle dot com


--- 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



[Bug c++/37208] C++0x deleted functions and SFINAE

2008-08-22 Thread dgregor at gcc dot gnu dot org


--- 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=16133action=view)
Test case illustrating the problem


-- 


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