]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR fortran/34907 (valgrind error indication from testsuite trans-types.c: gfc_type...
authorTobias Burnus <burnus@net-b.de>
Tue, 22 Jan 2008 16:43:20 +0000 (17:43 +0100)
committerTobias Burnus <burnus@gcc.gnu.org>
Tue, 22 Jan 2008 16:43:20 +0000 (17:43 +0100)
2008-01-22  Tobias Burnus  <burnus@net-b.de>

       PR fortran/34907
       * parse.c (parse_spec): Change = into ==.

From-SVN: r131728

gcc/fortran/ChangeLog
gcc/fortran/parse.c

index 72af9f03ca661b34a45d6738d80e5006f4737c56..fd6efa3dbba9bf179338e8248834ae8cfffb22a3 100644 (file)
@@ -1,3 +1,8 @@
+2008-01-22  Tobias Burnus  <burnus@net-b.de>
+
+       PR fortran/34907
+       * parse.c (parse_spec): Change = into ==.
+
 2008-01-22  Daniel Franke  <franke.daniel@gmail.com>
 
        PR fortran/34915
index e57e10df51df1ac341fd3fca25a9b355b0890081..64d8c332917196bc9dd10d62428dc8d57688f61d 100644 (file)
@@ -2189,7 +2189,7 @@ loop:
 
       gfc_current_block ()->ts.kind = 0;
       /* Keep the derived type; if it's bad, it will be discovered later.  */
-      if (!(ts->type = BT_DERIVED && ts->derived))
+      if (!(ts->type == BT_DERIVED && ts->derived))
         ts->type = BT_UNKNOWN;
     }