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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Last reconfirmed|                            |2021-12-02
           Keywords|                            |diagnostic
     Ever confirmed|0                           |1
             Status|UNCONFIRMED                 |NEW

--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
With -std=c++20, we do warn:
<source>:2:21: warning: \U7FFFFFFF is outside the UCS codespace
    2 |     char32_t  s[] = U"\U0010FFFF\U7FFFFFFF";
      |                     ^~~~~~~~~~~~~~~~~~~~~~~

This warning was implemented in r10-3414-g0900e29cdbc5.
I wonder if we should just enable it for all C++ standards and above of C++20+.

Reply via email to