https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61875
Yury Gribov <y.gribov at samsung dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |y.gribov at samsung dot com --- Comment #1 from Yury Gribov <y.gribov at samsung dot com> --- I think the error may be caused by compiling gcc with -fexceptions. Here is a short repro: $ cat tmp.cpp int f () throw (); int f (); $ g++ -fexceptions tmp.cpp -c tmp.cpp:2:8: error: declaration of ‘int f()’ has a different exception specifier tmp.cpp:1:5: error: from previous declaration ‘int f() throw ()’ The error is well known, here's link to Perl bug with proposed solution: https://rt.perl.org/Public/Bug/Display.html?id=121151