gcc3 vs 176.gcc

Zack Weinberg zack@codesourcery.com
Thu Jan 10 17:33:00 GMT 2002


On Thu, Jan 10, 2002 at 03:24:14PM -0800, Richard Henderson wrote:
> > 
> > This is an odd way of looking at things.  Consider code that accesses
> > a private data member in C++ without permission.
> 
> That's the difference between undefined behaviour and a constraint
> violation.  Code with undefined behaviour must compile.

Not necessarily...

#include </vmunix>

is undefined behavior, but I would be very surprised if it compiled
anywhere.

zw



More information about the Gcc mailing list