https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57607
--- Comment #3 from Douglas Mencken <dougmencken at gmail dot com> --- (In reply to Jonathan Wakely from comment #2) > Seems to be fixed in GCC 5 though: Yep, 5.2 works: $ g++-5.2 -std=gnu++11 -framework CoreFoundation -lobjc test.mm && ./a.out Hello world!