[Bug c++/48247] New: Options -std=gnu++0x -pedantic -Werror produce [-Werror=edantic]
Denis.Excoffier at airbus dot com
gcc-bugzilla@gcc.gnu.org
Wed Mar 23 07:47:00 GMT 2011
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: unassigned@gcc.gnu.org
ReportedBy: Denis.Excoffier@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.
More information about the Gcc-bugs
mailing list