Hello.
I noticed that (foo.cpp):
enum gaz { foo, };
generated a warning
foo.cpp:1:15: warning: comma at end of enumerator list [-pedantic]
when compiled with
g++ -std=gnu++0x -pedantic -fsyntax-only foo.cpp
According to n3290 this is acceptable so I tried to make this warning go
away.
This warning is issued at line 13588 in gcc/cp/parser.c (revision
173058) with a pedwarn. I then found the function pedwarn_cxx98 with the
comment
/* Issue an ISO C++98 pedantic warning at LOCATION, conditional on
option OPT with text GMSGID. Use this function to report
diagnostics for constructs that are invalid C++98, but valid
C++0x. */
bool
pedwarn_cxx98 (location_t location, int opt, const char *gmsgid, ...)
and that sounds like what I want to happen here so I changed the pedwarn
to pedwarn_cxx98, recompiled an tried again.
No change, I still got the warning.
So, now I would like to know if there is something amiss with
pedwarn_cxx98 or the comment above it?
/MF