(In reply to comment #8)
> Note: this is very old, I barely remember it.
> 
> (In reply to comment #6)
> > Sorry, I think your message is not easily understandable. I think you are
> > trying to say that "the right hand side must be a pointer-to-member",
> 
> No, I think I am saying: hello, this is the left hand side of a ->* operator,
> and you are feeding me a pointer to member, which obviously should be on the
> right hand side.

Ah! I was looking at the testcase here and I got confused.

> test.cc:2:11: error: left hand operand to ->* must be a pointer to class
>       compatible with the right hand operand, but is 'struct  A::*'
> int i = p ->* p ; // { dg-error "" }
>           ^~~
>           .*
> 
> (not sure what that .* is doing there)

Me neither, but clang's text is clearer in my humble opinion. I will be
happy with the text changed to "left-side operand of %<->*%> must a
pointer to class compatible with the right-side operand", and everything
the same as your current patch. Please submit that!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/984577

Title:
  internal compiler error: in cp_build_indirect_ref, at cp/typeck.c:2786

To manage notifications about this bug go to:
https://bugs.launchpad.net/gcc/+bug/984577/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to