[Bug c++/80230] error accessing struct member, error says it's size_t, but it is int
jmichae3 at yahoo dot com
gcc-bugzilla@gcc.gnu.org
Thu Mar 30 01:33:00 GMT 2017
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80230
--- Comment #6 from Jim Michaels <jmichae3 at yahoo dot com> ---
here is another incorrect type spouted out:
atoi64.cpp:1101:389: error: request for member 'v' in 'vecstruct[i]', which is
of non-class type 'size_t {aka long long unsigned int}'
vecstruct[i].v
mBaseVal is std::vector<struct...> which struct has a member v. v is type int,
not type size_t which is unsigned int for 32-bit and long long unsigned int for
64-bit.
More information about the Gcc-bugs
mailing list