http://gcc.gnu.org/bugzilla/show_bug.cgi?id=48247
Summary: Options -std=gnu++0x -pedantic -Werror produce [-Werror=edantic] Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: denis.excoff...@airbus.com I use GCC 4.6.0 RC 20110314 or 20110321. % cat foo.cc #include <cstdio> // int main() { // printf("hello world!\n"); }; % gcc -O -o foo -std=gnu++0x -pedantic -Werror foo.cc foo.cc:7:2: error: extra ';' [-Werror=edantic] cc1plus: all warnings being treated as errors % Should be [-Werror=pedantic] at least.