mirror of git://gcc.gnu.org/git/gcc.git
parent
2e5e7103a3
commit
1377eb9a03
|
|
@ -1,5 +1,7 @@
|
||||||
2014-01-28 Jason Merrill <jason@redhat.com>
|
2014-01-28 Jason Merrill <jason@redhat.com>
|
||||||
|
|
||||||
|
* decl.c (duplicate_decls): Tweak.
|
||||||
|
|
||||||
PR c++/53756
|
PR c++/53756
|
||||||
* mangle.c (write_unqualified_name): Handle operator auto.
|
* mangle.c (write_unqualified_name): Handle operator auto.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1923,13 +1923,13 @@ duplicate_decls (tree newdecl, tree olddecl, bool newdecl_is_friend)
|
||||||
if (TREE_CODE (newdecl) == FUNCTION_DECL)
|
if (TREE_CODE (newdecl) == FUNCTION_DECL)
|
||||||
maybe_instantiate_noexcept (olddecl);
|
maybe_instantiate_noexcept (olddecl);
|
||||||
|
|
||||||
/* Merge the data types specified in the two decls. */
|
|
||||||
newtype = merge_types (TREE_TYPE (newdecl), TREE_TYPE (olddecl));
|
|
||||||
|
|
||||||
/* For typedefs use the old type, as the new type's DECL_NAME points
|
/* For typedefs use the old type, as the new type's DECL_NAME points
|
||||||
at newdecl, which will be ggc_freed. */
|
at newdecl, which will be ggc_freed. */
|
||||||
if (TREE_CODE (newdecl) == TYPE_DECL)
|
if (TREE_CODE (newdecl) == TYPE_DECL)
|
||||||
newtype = oldtype;
|
newtype = oldtype;
|
||||||
|
else
|
||||||
|
/* Merge the data types specified in the two decls. */
|
||||||
|
newtype = merge_types (TREE_TYPE (newdecl), TREE_TYPE (olddecl));
|
||||||
|
|
||||||
if (VAR_P (newdecl))
|
if (VAR_P (newdecl))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue