This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Ping: PATCH to generate error for address of cast
- From: Matt Austern <austern at apple dot com>
- To: Jason Merrill <jason at redhat dot com>
- Cc: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>, Nathan Sidwell <nathan at codesourcery dot com>, gcc-patches at gcc dot gnu dot org
- Date: Wed, 21 Aug 2002 15:51:20 -0700
- Subject: Re: Ping: PATCH to generate error for address of cast
On Wednesday, August 21, 2002, at 12:37 PM, Jason Merrill wrote:
On Wed, 21 Aug 2002 12:28:35 -0700, Matt Austern <austern@apple.com>
wrote:
On Wednesday, August 21, 2002, at 12:17 PM, Jason Merrill wrote:
Please remove the static_cast from this testcase; I don't want to
support
this extension with new-style casts.
I have no problem removing the static_cast from the positive test
case.
However, in the interests of being as explicit as possible about just
what this extension does and doesn't do, I think that if we decide it
doesn't apply to new-style casts then we should probably have the
compiler issue an error message.
Certainly. Care to add it, or at least an XFAILed error test?
Separately, I think. I'll have to learn how to distinguish
between old-style and new-style casts in the IR. I'll also
add a note to the documentation saying that the extension
doesn't apply to new-style casts. A couple days.
--Matt