This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/54599] Issues found in gfortran by the Coverity Scan


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54599

--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2012-09-18 10:10:28 UTC ---
And another one: Unreachable code; due to  "if(extremum == NULL) {...;
continue}", last == NULL is always false:

--- a/gcc/fortran/simplify.c
+++ b/gcc/fortran/simplify.c
@@ -4109,4 +4109 @@ simplify_min_max (gfc_expr *expr, int sign)
-      if (last == NULL)
-       expr->value.function.actual = arg->next;
-      else
-       last->next = arg->next;
+      last->next = arg->next;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]