Wednesday July 10, 2013

What Was That About Sufficiently Smart Compilers?

Mike Ash dug deep to demonstrate a crazy compiler bug first discovered by Daniel Jalkut. Apparently, the version of clang that came with Xcode 4.4.1 would generate code that could crash if it called a library that was compiled by gcc. Great detective work and a great explanation.

You can always trust the compiler, right?