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.

Reply via email to