[Bug c++/11867] [3.3/3.4 Regression] static_cast ignores ambiguity

janis187 at us dot ibm dot com gcc-bugzilla@gcc.gnu.org
Mon Aug 11 21:03:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


janis187 at us dot ibm dot com changed:

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


------- Additional Comments From janis187 at us dot ibm dot com  2003-08-11 21:03 -------
The regression in PR 11867 was introduced or exposed by this patch:

--- gcc/gcc/cp/ChangeLog ---

2003-06-25  Mark Mitchell  <mark@codesourcery.com>

        PR c++/10931
        * call.c (convert_like): Pass issue_conversion_warnings.
        (convert_like_with_context): Likewise.
        (convert_like_real): Add issue_conversion_warnings parameter.
        (perform_direct_initialization_if_possible): New function.
        * cp-tree.h (perform_direct_initialization_if_possible): Declare it.
        * typeck.c (check_for_casting_away_constness): New function.
        (build_static_cast): Rewrite.

The regression hunt took place on i686-pc-linux-gnu using the submitter's
test case.



More information about the Gcc-bugs mailing list