https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70297
--- Comment #16 from Marek Polacek <mpolacek at gcc dot gnu.org> --- Author: mpolacek Date: Mon Apr 18 15:21:52 2016 New Revision: 235150 URL: https://gcc.gnu.org/viewcvs?rev=235150&root=gcc&view=rev Log: PR c/70297 * c-decl.c (merge_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN. * decl.c (duplicate_decls): Also set TYPE_ALIGN and TYPE_USER_ALIGN. * c-c++-common/pr70297.c: New test. * g++.dg/cpp0x/typedef-redecl.C: New test. * gcc.dg/typedef-redecl2.c: New test. Added: branches/gcc-5-branch/gcc/testsuite/c-c++-common/pr70297.c branches/gcc-5-branch/gcc/testsuite/g++.dg/cpp0x/typedef-redecl.C branches/gcc-5-branch/gcc/testsuite/gcc.dg/typedef-redecl2.c Modified: branches/gcc-5-branch/gcc/c/ChangeLog branches/gcc-5-branch/gcc/c/c-decl.c branches/gcc-5-branch/gcc/cp/ChangeLog branches/gcc-5-branch/gcc/cp/decl.c branches/gcc-5-branch/gcc/testsuite/ChangeLog