re PR c++/5388 (Incorrect message "operands to ?: have different types")
authorJason Merrill <jason@gcc.gnu.org>
Thu, 15 May 2003 22:25:51 +0000 (18:25 -0400)
committerJason Merrill <jason@gcc.gnu.org>
Thu, 15 May 2003 22:25:51 +0000 (18:25 -0400)
commit9cefd2cac4d33953331ee31b96553e0baca0d898
tree97560f63f2cfb583065bc62291c070d43909a908
parent8f4b394d0259cb330bf8a67f0e4b974a6070def7
re PR c++/5388 (Incorrect message "operands to ?: have different types")

        PR c++/5388
        * call.c (conditional_conversion): Don't consider implicit
        conversions if T2 is a base of T1.
        * cp-tree.h (DERIVED_FROM_P, UNIQUELY_DERIVED_FROM_P): Make boolean.
        (ACCESSIBLY_UNIQUELY_DERIVED_P, PUBLICLY_UNIQUELY_DERIVED_P): Likewise.

        * parser.c (cp_parser_primary_expression): Convert a static data
        member from reference.

From-SVN: r66844
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/parser.c