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", but this is not actually what your proposed message says.
I like more clang's message:
/tmp/webcompile/_28618_0.cc:4:11: error: right hand operand to ->* has non
pointer-to-member type 'void ()'
int i = p ->* f ;
^ ~
I am not saying that you need to print the type or fix the location (it
would be nice but I understand it is quite extra work, and could be done
later). But the text could say: "type of right-side operand of %<->*%>
is not pointer-to-member", or "right-side operand of %<->*%> has non
pointer-to-member type" or "right-side operand of %<->*%> must have
pointer-to-member type".
--
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
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs