Fix, reorganize, and clarify comparisons of anonymous types/components.
authorFritz Reese <fritzoreese@gmail.com>
Mon, 29 Aug 2016 12:24:25 +0000 (12:24 +0000)
committerFritz Reese <foreese@gcc.gnu.org>
Mon, 29 Aug 2016 12:24:25 +0000 (12:24 +0000)
commit5f88e9b2593ea9bff34c1e4940607a8de1c93592
tree6b870619e7501616a01107c2522b0f45b8ff853a
parent468d95c82cff4d16e5384b1f878d1050cb3deb32
Fix, reorganize, and clarify comparisons of anonymous types/components.

2016-08-29  Fritz Reese  <fritzoreese@gmail.com>

Fix, reorganize, and clarify comparisons of anonymous types/components.

PR fortran/77327
* interface.c (is_anonymous_component, is_anonymous_dt): New functions.
* interface.c (compare_components, gfc_compare_derived_types): Use new
functions.

* gfortran.dg/dec_structure_13.f90: New testcase.

From-SVN: r239819
gcc/fortran/ChangeLog
gcc/fortran/interface.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/dec_structure_13.f90 [new file with mode: 0644]