[Bug c++/37208] C++0x deleted functions and SFINAE
jason at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Wed Sep 3 04:13:00 GMT 2008
------- 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
More information about the Gcc-bugs
mailing list