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
* [Bug c++/108911] 0xe+100 gives talks about an impossible literal operator in error message 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 ` 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 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-11-09 4:05 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108911 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xmh970252187 at gmail dot com --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- *** Bug 112423 has been marked as a duplicate of this bug. *** ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/108911] 0xe+100 gives talks about an impossible literal operator in error message 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 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-11-09 4:06 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108911 Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2023-11-09 Ever confirmed|0 |1 --- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Confirmed via the dup. ^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug c++/108911] 0xe+100 gives talks about an impossible literal operator in error message 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 2 siblings, 0 replies; 4+ messages in thread From: pinskia at gcc dot gnu.org @ 2023-11-09 4:11 UTC (permalink / raw) To: gcc-bugs https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108911 --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Note clang has a decent error message for `0xe+100` but has just as bad one for `123_to.` Full testcase for a few: ``` int a = 0xe+100; int b = 123_to.; int c = 0xe_100e+10; ``` ^ 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).