This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/54541] SFINAE bug: handling incomplete return types


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

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

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

--- Comment #2 from paolo at gcc dot gnu.org <paolo at gcc dot gnu.org> 2012-09-11 01:05:22 UTC ---
Author: paolo
Date: Tue Sep 11 01:05:12 2012
New Revision: 191170

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

    PR c++/54541
    PR c++/54542
    * call.c (build_cxx_call): Add tsubst_flags_t parameter, use
    require_complete_type_sfinae.
    (build_op_delete_call, build_over_call): Adjust.
    * typeck.c (build_x_compound_expr_from_vec): Add tsubst_flags_t
    parameter.
    (cp_build_function_call_vec): Adjust.
    * init.c (build_new_1): Likewise.
    * rtti.c (throw_bad_cast, throw_bad_typeid, build_dynamic_cast_1):
    Likewise.
    * optimize.c (build_delete_destructor_body): Likewise.
    * cp-tree.h: Adjust declarations.

    * call.c (convert_arg_to_ellipsis): Use require_complete_type_sfinae.

/testsuite
2012-09-10  Paolo Carlini  <paolo.carlini@oracle.com>

    PR c++/54541
    PR c++/54542
    * g++.dg/cpp0x/sfinae40.C: New.
    * g++.dg/cpp0x/sfinae41.C: Likewise.

Added:
    trunk/gcc/testsuite/g++.dg/cpp0x/sfinae40.C
    trunk/gcc/testsuite/g++.dg/cpp0x/sfinae41.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/cp/init.c
    trunk/gcc/cp/optimize.c
    trunk/gcc/cp/rtti.c
    trunk/gcc/cp/typeck.c
    trunk/gcc/testsuite/ChangeLog

--- Comment #3 from Paolo Carlini <paolo.carlini at oracle dot com> 2012-09-11 01:06:22 UTC ---
Fixed.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]