This is the mail archive of the gcc-bugs@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]

Re: An alias bug



  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



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