strict-aliasing and typedefs

Gabriel Dos Reis gdr@integrable-solutions.net
Wed May 14 22:11:00 GMT 2003


Brad Lucier <lucier@math.purdue.edu> writes:

| > 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.

Yes, you're right.

| > -- 
| > 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 ;-).

I'm curious...

-- Gaby



More information about the Gcc mailing list