[LLVMdev] Is this a bug in clang?

Csaba Raduly rcsaba at gmail.com
Wed Apr 20 00:02:47 PDT 2011


On Wed, Apr 20, 2011 at 7:50 AM, John Regehr wrote:
>> So... Are 40 and 41 the only legal behaviors or are there more?
>
> Since the program invokes undefined behavior, anything goes.
>
> The compiler is perfectly within its rights to send a rude email to your
> department chair if you compile that code.


http://www.catb.org/jargon/html/N/nasal-demons.html

Csaba
-- 
GCS a+ e++ d- C++ ULS$ L+$ !E- W++ P+++$ w++$ tv+ b++ DI D++ 5++
The Tao of math: The numbers you can count are not the real numbers.
Life is complex, with real and imaginary parts.
"Ok, it boots. Which means it must be bug-free and perfect. " -- Linus Torvalds
"People disagree with me. I just ignore them." -- Linus Torvalds



More information about the llvm-dev mailing list