strict-aliasing and typedefs
Brad Lucier
lucier@math.purdue.edu
Wed May 14 22:07:00 GMT 2003
> You're entirely correct, but I think that what Brad wanted (based on
> his message) was:
> typedef int kindone;
> typedef int kindtwo;
>
> and then to have any kindtwo* pointer not alias any kindone* pointer.
> Which is not quite the same as restrict, and is not possible in C.
>
> --
> Daniel Jacobowitz
> MontaVista Software Debian GNU/Linux Developer
>
Yes, that's what I wanted, but I'm a practical person, and I'll take what
I can get ;-).
Brad
More information about the Gcc
mailing list