public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/108911] New: 0xe+100 gives talks about an impossible literal operator in error message
@ 2023-02-23 21:54 pinskia at gcc dot gnu.org
  2023-11-09  4:05 ` [Bug c++/108911] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-02-23 21:54 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 108911
           Summary: 0xe+100 gives talks about an impossible literal
                    operator in error message
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: diagnostic
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Take:
```
  int a = 0xe+100;
```
The C++ front-end gives:
<source>:1:11: error: unable to find numeric literal operator 'operator""+100'
    1 |   int a = 0xe+100;
      |           ^~~~~~~

But there is no way to have a numeric literal operator named that ..
Note erroring out is correct, I am just saying the diagnostic should be
improved.

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

end of thread, other threads:[~2023-11-09  4:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-23 21:54 [Bug c++/108911] New: 0xe+100 gives talks about an impossible literal operator in error message pinskia at gcc dot gnu.org
2023-11-09  4:05 ` [Bug c++/108911] " pinskia at gcc dot gnu.org
2023-11-09  4:06 ` pinskia at gcc dot gnu.org
2023-11-09  4:11 ` pinskia 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).