[Bug libstdc++/82252] New: src/filesystem/ops.cc:392]: (warning) Identical condition
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Tue Sep 19 11:07:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82252
Bug ID: 82252
Summary: src/filesystem/ops.cc:392]: (warning) Identical
condition
Product: gcc
Version: 8.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
[trunk/libstdc++-v3/src/filesystem/ops.cc:390] ->
[trunk/libstdc++-v3/src/filesystem/ops.cc:392]: (warning) Identical condition
'ec', second condition is always false
Source code is
if (ec)
return false;
if ((from_mtime <= file_time(*to_st, ec)) || ec)
return false;
This code could probably benefit from a small tidyup.
More information about the Gcc-bugs
mailing list