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++/41468] SFINAE for expressions doesn't consider ambiguous conversion sequences



------- Comment #2 from jason at gcc dot gnu dot org  2010-04-27 19:04 -------
Subject: Bug 41468

Author: jason
Date: Tue Apr 27 19:04:09 2010
New Revision: 158798

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=158798
Log:
        PR c++/41468
        * class.c (convert_to_base): Add complain parameter.  Pass
        ba_quiet to lookup_base if we don't want errors.
        (build_vfield_ref): Pass complain to convert_to_base.
        * call.c (convert_like_real): Likewise.
        (initialize_reference): Likewise.
        (perform_direct_initialization_if_possible): Pass complain to
        convert_like_real.
        * cp-tree.h: Adjust.

Added:
    trunk/gcc/testsuite/g++.dg/template/sfinae17.C
Modified:
    trunk/gcc/cp/ChangeLog
    trunk/gcc/cp/call.c
    trunk/gcc/cp/class.c
    trunk/gcc/cp/cp-tree.h
    trunk/gcc/testsuite/ChangeLog


-- 


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


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