2007-11-29

I Broke GCC

CookieJar:Desktop keith$ cat test.mm 
template <typename S>
void swap_struct(S *s)
{
    const char *encoding = @encode(S);
    // ...
}
CookieJar:Desktop keith$ gcc test.mm 
test.mm: In function ‘void swap_struct(S*)’:
test.mm:4: internal compiler error: Bus error
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.

Darn. That would've been a cool piece of code. Oh well, a macro will suffice.

Radar 5619052.

0 comments: