This is the mail archive of the gcc@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: subreg question



> > The C standard's aliasing rules.  *((float *)&z) is an object of type
> > float; double is a different type than float; z is an object of type
> > double; *((float *)&z) and z can not alias.
> 
> agreed.  be that as it may dale, if the compiler is crashing, it's a
> bug, so it needs to be fixed :)

Right.  The compiler must not crash for any input whatsoever, no matter
how nonstandard, otherwise it's a bug, and a rather severe one at that.
And this is the type of non-standardness that our users are likely to
feed to us, since the C aliasing rules are not widely known about even
by experienced C programmers.




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