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 libstdc++/65101] cppcheck for vector.tcc: Variable '__new_finish' is reassigned a value before the old one has been used.


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65101

--- Comment #1 from Jonathan Wakely <redi at gcc dot gnu.org> ---
cppcheck is wrong. If the std::__uninitialized_move_if_noexcept_a operation
throws an exception then __new_finish doesn't get a new value and is left
value-initialized, which is checked for in the catch clause.


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