re PR c++/5857 (C++ duplicate_decls shouldn't use common_type)
authorJason Merrill <jason@redhat.com>
Fri, 15 Mar 2002 18:31:55 +0000 (13:31 -0500)
committerJason Merrill <jason@gcc.gnu.org>
Fri, 15 Mar 2002 18:31:55 +0000 (13:31 -0500)
commit6da794e83532c526345040d6251acf12147d4231
tree5bf7381d37be615ff3e1be31fe56f3a90cad3f02
parentb3b77addd069e3f4010f482942af55b2a8c0e9c5
re PR c++/5857 (C++ duplicate_decls shouldn't use common_type)

        PR c++/5857
        * decl.c (duplicate_decls): Use merge_types instead of common_type.
        * typeck.c (common_type): Just hand off to
        type_after_usual_arithmetic_conversions and
        composite_pointer_type.
        (merge_types): New fn.
        (commonparms): Use it instead of common_type.
        (type_after_usual_arithmetic_conversions): Also handle COMPLEX_TYPE.
        (composite_pointer_type): Also handle attributes.
        * cp-tree.h: Declare merge_types.

From-SVN: r50820
gcc/cp/ChangeLog
gcc/cp/cp-tree.h
gcc/cp/decl.c
gcc/cp/typeck.c
gcc/testsuite/g++.dg/other/redecl1.C [new file with mode: 0644]