This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ICE: malformed code gives ICE for &(C::m)


Hmm...we might be trying to support that in order to be bug-compatible with
VC++; I know it allows a lot of sloppiness with pointers to members.  But
that should only happen with -fms-extensions anyway; let's give your patch
a try.

But please change your error message to tell the user something about how
to fix their code, not just that something they did was wrong.  Probably
the simplest way to do this was tell them that a proper pointer-to-member
is written "&C::m".

Jason


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]