https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80230
Bug ID: 80230
Summary: error accessing struct member, error says it's size_t,
but it is int
Product: gcc
Version: 6.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jmichae3 at yahoo dot com
Target Milestone: ---
atoi64.cpp:1398:84: error: request for member 'i' in
'vecstruct[vecstructfromi(5ll)]', which is of non-class type 'size_t {aka long
long unsigned int}'
enum{A=5};
...
} else if
(!foundMode&&static_cast<intmax_t>(vecstruct[vecstructfromi(A)].i)==static_cast<intmax_t>(A))
{
i is of type int, not size_t. struct looks like:
struct {int i;intmax_t v;}