public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/112702] New: C23, C++23: Extended characters not valid in an identifier with -pedantic
@ 2023-11-24 15:12 stammark at gcc dot gnu.org
  2023-11-24 15:41 ` [Bug c/112702] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: stammark at gcc dot gnu.org @ 2023-11-24 15:12 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 112702
           Summary: C23, C++23: Extended characters not valid in an
                    identifier with -pedantic
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: stammark at gcc dot gnu.org
  Target Milestone: ---

Hi all,

This is likely a symptom of the WIP-ness of C23 and C++23 support in the
frontends, but see here:

https://godbolt.org/z/78KeK1fnG

The use of extended characters in identifiers with -pedantic stopped working

* For C, in GCC13
* For C++ in GCC12

Removing -pedantic makes the compilation succeed.

Is this expected behaviour with -pedantic or a bug?

Thanks,

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

* [Bug c/112702] C23, C++23: Extended characters not valid in an identifier with -pedantic
  2023-11-24 15:12 [Bug c/112702] New: C23, C++23: Extended characters not valid in an identifier with -pedantic stammark at gcc dot gnu.org
@ 2023-11-24 15:41 ` pinskia at gcc dot gnu.org
  2023-11-24 15:43 ` pinskia at gcc dot gnu.org
  2023-11-24 19:14 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-24 15:41 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Dup.

*** This bug has been marked as a duplicate of bug 109936 ***

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

* [Bug c/112702] C23, C++23: Extended characters not valid in an identifier with -pedantic
  2023-11-24 15:12 [Bug c/112702] New: C23, C++23: Extended characters not valid in an identifier with -pedantic stammark at gcc dot gnu.org
  2023-11-24 15:41 ` [Bug c/112702] " pinskia at gcc dot gnu.org
@ 2023-11-24 15:43 ` pinskia at gcc dot gnu.org
  2023-11-24 19:14 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-24 15:43 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
The answer is to is expected, the answer is YES.

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

* [Bug c/112702] C23, C++23: Extended characters not valid in an identifier with -pedantic
  2023-11-24 15:12 [Bug c/112702] New: C23, C++23: Extended characters not valid in an identifier with -pedantic stammark at gcc dot gnu.org
  2023-11-24 15:41 ` [Bug c/112702] " pinskia at gcc dot gnu.org
  2023-11-24 15:43 ` pinskia at gcc dot gnu.org
@ 2023-11-24 19:14 ` redi at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: redi at gcc dot gnu.org @ 2023-11-24 19:14 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
It's also documented in the release notes:

https://gcc.gnu.org/gcc-13/changes.html#c (see N2836, Identifier Syntax using
Unicode Standard Annex 31).

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

end of thread, other threads:[~2023-11-24 19:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-24 15:12 [Bug c/112702] New: C23, C++23: Extended characters not valid in an identifier with -pedantic stammark at gcc dot gnu.org
2023-11-24 15:41 ` [Bug c/112702] " pinskia at gcc dot gnu.org
2023-11-24 15:43 ` pinskia at gcc dot gnu.org
2023-11-24 19:14 ` redi 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).