[llvm-bugs] [Bug 46288] Missing warning "extra '; ' outside of a function" in -Wpedantic
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Jun 11 11:23:38 PDT 2020
https://bugs.llvm.org/show_bug.cgi?id=46288
Richard Smith <richard-llvm at metafoo.co.uk> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|NEW |RESOLVED
--- Comment #1 from Richard Smith <richard-llvm at metafoo.co.uk> ---
Clang's default -std= mode changed since clang 5, and this code is valid in the
new default standard mode.
Clang trunk with -std=c++98 still warns.
Clang 5 with -std=c++11 does not warn.
I believe this is working as intended, given the change in default -std mode.
If GCC rejects this under -pedantic-errors in C++11 or later, I think that's a
GCC bug.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20200611/c194bfe2/attachment.html>
More information about the llvm-bugs
mailing list