This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: An alias bug
- To: "David S. Miller" <davem at dm dot cobaltmicro dot com>
- Subject: Re: An alias bug
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Mon, 13 Jul 1998 01:12:04 -0600
- cc: hjl at lucon dot org, egcs-bugs at cygnus dot com, mark at markmitchell dot com
- Reply-To: law at cygnus dot com
In message <199807130710.AAA09456@dm.cobaltmicro.com>you write:
> Date: Mon, 13 Jul 1998 00:55:55 -0600
> From: Jeffrey A Law <law@hurl.cygnus.com>
>
> > Or does GCC right now warn about such illegal things with the proper
> > -W options enabled?
>
> It would be nice to be able to catch this. I suspect it would have to
> happen in the front-end since it's the only part of the compiler that
> knows about casts.
>
> So therefore, perhaps semantic analysis could see it?
Presumably so. In initial cut would just warn when we see a cast of
a scalar to an aggregate and vice versa. This is out of my league
though -- I don't know squat about our front-end, so I don't know if
this is possible within the current structure of the front end.
jeff