http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47723
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> 2011-02-14 16:44:33 UTC --- iccconfig.cpp:289 looks like: KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI::KRandrSimpleAPI(); That code is invalid, gcc 4.5 is correct to reject it. It should be: KRandrSimpleAPI *randrsimple = new KRandrSimpleAPI();