aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorFritz Reese <fritzoreese@gmail.com>2016-08-23 16:11:19 +0000
committerFritz Reese <foreese@gcc.gnu.org>2016-08-23 16:11:19 +0000
commita181ec03012c1884f45482ba2d5b8cd00ef96a71 (patch)
treea89ca2de85d5d11782b24279ed05cea5b1041ce5 /gcc
parente90a801017321bc22df4c5836b93a87912e50d0d (diff)
downloadgcc-a181ec03012c1884f45482ba2d5b8cd00ef96a71.zip
gcc-a181ec03012c1884f45482ba2d5b8cd00ef96a71.tar.gz
gcc-a181ec03012c1884f45482ba2d5b8cd00ef96a71.tar.bz2
interface.c (compare_components): Fix typo in name check conditional.
2016-08-23 Fritz Reese <fritzoreese@gmail.com> gcc/fortran/ * interface.c (compare_components): Fix typo in name check conditional. From-SVN: r239706
Diffstat (limited to 'gcc')
-rw-r--r--gcc/fortran/ChangeLog4
-rw-r--r--gcc/fortran/interface.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/gcc/fortran/ChangeLog b/gcc/fortran/ChangeLog
index 3000e91..d3273a8 100644
--- a/gcc/fortran/ChangeLog
+++ b/gcc/fortran/ChangeLog
@@ -1,3 +1,7 @@
+2016-08-23 Fritz Reese <fritzoreese@gmail.com>
+
+ * interface.c (compare_components): Fix typo in name check conditional.
+
2016-08-22 Steven G. Kargl <kargl@gcc.gnu.org>
Bud Davis <jmdavis@link.com>
diff --git a/gcc/fortran/interface.c b/gcc/fortran/interface.c
index b894b2f..119c534 100644
--- a/gcc/fortran/interface.c
+++ b/gcc/fortran/interface.c
@@ -403,7 +403,7 @@ compare_components (gfc_component *cmp1, gfc_component *cmp2,
if ( (d1 && (d1->attr.flavor == FL_STRUCT || d1->attr.flavor == FL_UNION)
&& ISUPPER (cmp1->name[1]))
|| (d2 && (d2->attr.flavor == FL_STRUCT || d2->attr.flavor == FL_UNION)
- && ISUPPER (cmp1->name[1])))
+ && ISUPPER (cmp2->name[1])))
anonymous = true;
if (!anonymous && strcmp (cmp1->name, cmp2->name) != 0)