[Bug c/97154] gcc/c/c-decl.c:5729:38: error: Dereference of an invalid iterator

dcb314 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Mon Sep 21 21:34:21 GMT 2020


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

--- Comment #4 from David Binderman <dcb314 at hotmail dot com> ---
According to this:

http://www.cplusplus.com/reference/vector/vector/end/

Dereferencing end() is not allowed. 

Now I know why static analyser cppcheck was complaining.


More information about the Gcc-bugs mailing list