[LLVMdev] Is this a bug in clang?

John Regehr regehr at cs.utah.edu
Tue Apr 19 22:50:04 PDT 2011

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


More information about the llvm-dev mailing list