https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80240
Bug ID: 80240
Summary: cannot dynamic_cast variable to intmax_t from variable
of type intmax_t
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: ---
error: cannot dynamic_cast 'index' (of type 'intmax_t {aka long long int}') to
type 'intmax_t {aka long long int}' (target is not pointer or reference)
result=multiplier*dynamic_cast<intmax_t>(base)+dynamic_cast<intmax_t>(index);
index is of type intmax_t. I should not be getting this error. to you this
might look stupid, but there's a compiler bug and it needs to be paid attention
to, compiler should not be throwing errors on this line.