This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: ICE: malformed code gives ICE for &(C::m)
- From: Gabriel Dos Reis <gdr at integrable-solutions dot net>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Mike Stump <mrs at apple dot com>, gcc-patches at gcc dot gnu dot org, mark at codesourcery dot com
- Date: 02 Nov 2002 14:26:54 +0100
- Subject: Re: ICE: malformed code gives ICE for &(C::m)
- Organization: Integrable Solutions
- References: <DD982DEA-A8D0-11D6-A741-000393941EE6@apple.com> <m3lm7khlwi.fsf@soliton.integrable-solutions.net> <wvl1y9cqiib.fsf@prospero.cambridge.redhat.com>
Jason Merrill <jason@redhat.com> writes:
| 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".
Just committed also to branch (to fix regression).
-- Gaby