[Bug libstdc++/103917] New: libstdc++-v3/src/c++17/fs_path.cc:74: struct passed by value ?
dcb314 at hotmail dot com
gcc-bugzilla@gcc.gnu.org
Wed Jan 5 10:37:14 GMT 2022
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103917
Bug ID: 103917
Summary: libstdc++-v3/src/c++17/fs_path.cc:74: struct passed by
value ?
Product: gcc
Version: 12.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: libstdc++
Assignee: unassigned at gcc dot gnu.org
Reporter: dcb314 at hotmail dot com
Target Milestone: ---
cppcheck says:
libstdc++-v3/src/c++17/fs_path.cc:74:28: performance: Function parameter 's'
should be passed by const reference. [passedByValue]
Source code is
_Parser(string_view_type s, size_t o = 0) : input(s), origin(o) { }
More information about the Gcc-bugs
mailing list