OSDN Git Service

PR c++/5857
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Mar 2002 18:31:55 +0000 (18:31 +0000)
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 15 Mar 2002 18:31:55 +0000 (18:31 +0000)
commitbe94aed9e22050fd1f086ec4601e80e563b6e21c
tree5bf7381d37be615ff3e1be31fe56f3a90cad3f02
parent2176c91a9057507ebdcfb7551458af5a5ca11b8e
    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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@50820 138bc75d-0d04-0410-961f-82ee72b054a4
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]