This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/48247] New: Options -std=gnu++0x -pedantic -Werror produce [-Werror=edantic]
- From: "Denis.Excoffier at airbus dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 23 Mar 2011 06:45:21 +0000
- Subject: [Bug c++/48247] New: Options -std=gnu++0x -pedantic -Werror produce [-Werror=edantic]
- Auto-submitted: auto-generated
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.