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 other/80062] gcc/c-family/c-cppbuiltin.c: PVS-Studio: V581


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

Martin Sebor <msebor at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |msebor at gcc dot gnu.org
         Resolution|---                         |INVALID

--- Comment #1 from Martin Sebor <msebor at gcc dot gnu.org> ---
According to the C++ Status page
(https://gcc.gnu.org/projects/cxx-status.html), in C++ 11 and C++ 14 modes the
two macros are set as follows:

  __cpp_range_based_for >= 200907
  __cpp_static_assert >= 200410

The conditionals in the snippet copied from the c_cpp_builtins function set the
macros for the two C++ modes above to the documented values.  I suppose the
conditionals could be merged into one but it's not necessary.  The code is
correct as is.  Thus resolving as invalid (but thank you for raising the report
nonetheless).

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