This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/48247] New: Options -std=gnu++0x -pedantic -Werror produce [-Werror=edantic]


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]