public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/106646] New: [C++23] P2437R1 - Support for #warning
@ 2022-08-16 16:46 mpolacek at gcc dot gnu.org
  2022-08-24  7:56 ` [Bug c++/106646] " cvs-commit at gcc dot gnu.org
  2022-08-24  8:05 ` jakub at gcc dot gnu.org
  0 siblings, 2 replies; 3+ messages in thread
From: mpolacek at gcc dot gnu.org @ 2022-08-16 16:46 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106646
           Summary: [C++23] P2437R1 - Support for #warning
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: mpolacek at gcc dot gnu.org
  Target Milestone: ---

See <https://wg21.link/p2437r1>.

Yes, we already have it, but we should still double check that we implement
everything the paper talks about.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/106646] [C++23] P2437R1 - Support for #warning
  2022-08-16 16:46 [Bug c++/106646] New: [C++23] P2437R1 - Support for #warning mpolacek at gcc dot gnu.org
@ 2022-08-24  7:56 ` cvs-commit at gcc dot gnu.org
  2022-08-24  8:05 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-08-24  7:56 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <jakub@gcc.gnu.org>:

https://gcc.gnu.org/g:365202625d2f2d6694dba889ca67498fefb59c68

commit r13-2167-g365202625d2f2d6694dba889ca67498fefb59c68
Author: Jakub Jelinek <jakub@redhat.com>
Date:   Wed Aug 24 09:55:57 2022 +0200

    preprocessor: Implement C++23 P2437R1 - Support for #warning [PR106646]

    On Thu, Aug 18, 2022 at 11:02:44PM +0000, Joseph Myers wrote:
    > ISO C2x standardizes the existing #warning extension.  Arrange
    > accordingly for it not to be diagnosed with -std=c2x -pedantic, but to
    > be diagnosed with -Wc11-c2x-compat.

    And here is the corresponding C++ version.
    Don't pedwarn about this for C++23/GNU++23 and tweak the diagnostics
    for C++ otherwise, + testsuite coverage.
    The diagnostic wording is similar e.g. to the #elifdef diagnostics.

    2022-08-24  Jakub Jelinek  <jakub@redhat.com>

            PR c++/106646
            * init.cc: Implement C++23 P2437R1 - Support for #warning.
            (lang_defaults): Set warning_directive for GNUCXX23 and CXX23.
            * directives.cc (directive_diagnostics): Use different wording of
            #warning pedwarn for C++.

            * g++.dg/cpp/warning-1.C: New test.
            * g++.dg/cpp/warning-2.C: New test.
            * g++.dg/cpp/warning-3.C: New test.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Bug c++/106646] [C++23] P2437R1 - Support for #warning
  2022-08-16 16:46 [Bug c++/106646] New: [C++23] P2437R1 - Support for #warning mpolacek at gcc dot gnu.org
  2022-08-24  7:56 ` [Bug c++/106646] " cvs-commit at gcc dot gnu.org
@ 2022-08-24  8:05 ` jakub at gcc dot gnu.org
  1 sibling, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2022-08-24  8:05 UTC (permalink / raw)
  To: gcc-bugs

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

Jakub Jelinek <jakub at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
Implemented for GCC 13.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-08-24  8:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-16 16:46 [Bug c++/106646] New: [C++23] P2437R1 - Support for #warning mpolacek at gcc dot gnu.org
2022-08-24  7:56 ` [Bug c++/106646] " cvs-commit at gcc dot gnu.org
2022-08-24  8:05 ` jakub at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).