[Bug fortran/111271] gcc/fortran/trans-expr.cc:1134:8: warning: duplicated ‘if’ condition [-Wduplicated-cond]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111271 Paul Thomas changed: What|Removed |Added Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #4 from Paul Thomas --- Fixed - thanks for the report. Paul
[Bug fortran/111271] gcc/fortran/trans-expr.cc:1134:8: warning: duplicated ‘if’ condition [-Wduplicated-cond]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111271 --- Comment #3 from CVS Commits --- The master branch has been updated by Paul Thomas : https://gcc.gnu.org/g:c23ce23e9ce162c49bca8900c8a20079b49501c9 commit r14-4242-gc23ce23e9ce162c49bca8900c8a20079b49501c9 Author: Paul Thomas Date: Sun Sep 24 09:00:52 2023 +0100 Fortran: Pad mismatched charlens in component initializers [PR68155] 2023-09-24 Paul Thomas gcc/fortran PR fortran/68155 * decl.cc (fix_initializer_charlen): New function broken out of add_init_expr_to_sym. (add_init_expr_to_sym, build_struct): Call the new function. PR fortran/111271 * trans-expr.cc (gfc_conv_intrinsic_to_class): Remove repeated condition. gcc/testsuite/ PR fortran/68155 * gfortran.dg/pr68155.f90: New test.
[Bug fortran/111271] gcc/fortran/trans-expr.cc:1134:8: warning: duplicated ‘if’ condition [-Wduplicated-cond]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111271 Paul Thomas changed: What|Removed |Added Last reconfirmed||2023-09-12 Ever confirmed|0 |1 Assignee|unassigned at gcc dot gnu.org |pault at gcc dot gnu.org Status|UNCONFIRMED |NEW --- Comment #2 from Paul Thomas --- (In reply to David Binderman from comment #1) > git blame says > > 6c95fe9bc0 (Paul Thomas 2023-05-16 06:35:40 +0100 1087) if > (unlimited_poly) > > ... > > 6c95fe9bc0 (Paul Thomas 2023-05-16 06:35:40 +0100 1134) else > if (unlimited_poly) > > Adding Paul for their best advice. Hah! You got me. r14-870-g6c95fe9bc0553743098eeaa739f14b885050fa42 Thanks for pointing it out. The fix is easy enough. Paul
[Bug fortran/111271] gcc/fortran/trans-expr.cc:1134:8: warning: duplicated ‘if’ condition [-Wduplicated-cond]
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111271 David Binderman changed: What|Removed |Added CC||pault at gcc dot gnu.org --- Comment #1 from David Binderman --- git blame says 6c95fe9bc0 (Paul Thomas 2023-05-16 06:35:40 +0100 1087) if (unlimited_poly) ... 6c95fe9bc0 (Paul Thomas 2023-05-16 06:35:40 +0100 1134) else if (unlimited_poly) Adding Paul for their best advice.