http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60481
Bug ID: 60481 Summary: [4.9 Regression] Missing diagnostic "ISO C++ forbids declaration of 'foo' with no type" Product: gcc Version: 4.9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: d.g.gorbachev at gmail dot com Target: *-*-mingw32 $ cat > foo.C foo() { return 0; } ^D $ i686-w64-mingw32-g++-4.9.0 -S foo.C $ i686-pc-linux-gnu-g++-4.9.0 -S foo.C foo.C:1:5: error: ISO C++ forbids declaration of 'foo' with no type [-fpermissive] foo() ^