public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "adam at wozniakconsulting dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/109936] error: extended character ≠ is not valid in an identifier
Date: Tue, 23 May 2023 15:38:53 +0000	[thread overview]
Message-ID: <bug-109936-4-JLoSFeNVyw@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-109936-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #21 from Adam Wozniak <adam at wozniakconsulting dot com> ---
(In reply to Andrew Pinski from comment #16)
> It is funny arguing with folks who write parts of GCC on an idea of
> integrated vs seperate preprocessor really.

yeah, i've been pounding out C since the late 80s, my dinosaur is probably
showing.  they'll probably call me in 2038 like they called the old COBOL
programmers for Y2K.

it's weird to me to think of them not separately.  i've even used the C
preprocessor in contexts unrelated to parsing C code.

it's also weird to see someone who thinks of the C preprocessor only in terms
of its service to the compiler.

whatever, that's drifting off topic.

main point for me was, i don't see any other reason to disallow these unicode
chars other than "the spec says so".  i don't see any HARM in allowing them,
and i certainly see use cases where there is BENEFIT to allowing them.

not all macro args get turned into C++ identifiers.  some get thrown away. 
some get stringified.  in the particular case where i tripped over this, they
get thrown away, and i have ANOTHER postprocessing step that picks them up and
does other magic stuff with them.

also, there's probably a really good case for allowing some of these things,
like emoji, actually be allowed as C++ identifiers.

  parent reply	other threads:[~2023-05-23 15:38 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-05-22 19:58 [Bug c++/109936] New: " adam at wozniakconsulting dot com
2023-05-22 20:04 ` [Bug c++/109936] " pinskia at gcc dot gnu.org
2023-05-22 20:06 ` pinskia at gcc dot gnu.org
2023-05-22 20:06 ` pinskia at gcc dot gnu.org
2023-05-22 20:16 ` adam at wozniakconsulting dot com
2023-05-22 20:17 ` redi at gcc dot gnu.org
2023-05-22 20:26 ` redi at gcc dot gnu.org
2023-05-22 20:29 ` pinskia at gcc dot gnu.org
2023-05-22 20:52 ` adam at wozniakconsulting dot com
2023-05-22 20:58 ` redi at gcc dot gnu.org
2023-05-22 21:14 ` schwab@linux-m68k.org
2023-05-22 21:20 ` jakub at gcc dot gnu.org
2023-05-22 23:36 ` adam at wozniakconsulting dot com
2023-05-22 23:43 ` adam at wozniakconsulting dot com
2023-05-22 23:47 ` adam at wozniakconsulting dot com
2023-05-23  0:39 ` adam at wozniakconsulting dot com
2023-05-23  1:54 ` pinskia at gcc dot gnu.org
2023-05-23  1:55 ` pinskia at gcc dot gnu.org
2023-05-23  8:01 ` schwab@linux-m68k.org
2023-05-23  9:06 ` redi at gcc dot gnu.org
2023-05-23 15:31 ` adam at wozniakconsulting dot com
2023-05-23 15:38 ` adam at wozniakconsulting dot com [this message]
2023-05-23 15:40 ` adam at wozniakconsulting dot com
2023-05-23 16:00 ` redi at gcc dot gnu.org
2023-05-23 17:23 ` adam at wozniakconsulting dot com
2023-05-23 17:36 ` joseph at codesourcery dot com
2023-05-23 18:05 ` adam at wozniakconsulting dot com
2023-11-24 15:41 ` pinskia at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-109936-4-JLoSFeNVyw@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).