re PR c++/3416 (gcc-3.0 Internal compiler error in arg_assoc, at cp/decl2.c:4902)
authorNathan Sidwell <nathan@codesourcery.com>
Wed, 25 Jul 2001 09:38:26 +0000 (09:38 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Wed, 25 Jul 2001 09:38:26 +0000 (09:38 +0000)
commit402604293366e07b85db805930f1bcf1f0bac947
treed493c5f26270f94be4e2797ecc940088fefb192c
parentab085207aad52d58945ea30b78c04e050d7b5a9a
re PR c++/3416 (gcc-3.0 Internal compiler error in arg_assoc, at cp/decl2.c:4902)

cp:
PR c++/3416
* call.c (build_conditional_expr): Recheck args after
conversions.
* cp-tree.h (build_conditional_expr): Move to correct file.
* typeck.c (decay_conversion): Diagnose any unknown types
reaching here.
(build_binary_op): Don't do initial decay or default
conversions on overloaded functions.
(build_static_cast): Don't do a decay conversion here.
testsuite:
* g++.old-deja/g++.other/cond7.C: New test.

From-SVN: r44345
gcc/cp/ChangeLog
gcc/cp/call.c
gcc/cp/cp-tree.h
gcc/cp/typeck.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.old-deja/g++.other/cond7.C [new file with mode: 0644]