https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113760

--- Comment #13 from Harald van Dijk <harald at gigawatt dot nl> ---
(In reply to Marek Polacek from comment #12)
> Thank for your comment.  In the end I went with
> 
> -std=c++03 -pedantic-errors -Wextra-semi -> warnings
> -std=c++03 -pedantic -Wextra-semi -> warnings (not pedwarn)
> 
> based on the principle that a more specific option overrides a more general
> option.  This is also what clang++ does.  Granted, -Wvla in C doesn't behave
> like that...

That also makes sense. The more specific option overriding a more general
option is also the reasoning why I expect no error with -pedantic-errors
-Wno-error=extra-semi.

Reply via email to