Given:
struct Foo
{
int aaaa;
float bbbb;
};
int main()
{
struct Foo bar;
struct Foo * pointer = &bar;
struct Foo * const const_pointer = &bar;
pointer->aaaa;
const_pointer->bbbb; // here is the problem
return 0;
}
pointer->const_pointer->In the attached screenshot you can see that codeblocks means that the variable const_pointer is of type Fooconst*. That is bad.
I can confirm this bug.