public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/96473] New: Very weird error message for invalid `wchar_t` declaration
@ 2020-08-04 22:01 gabravier at gmail dot com
  0 siblings, 0 replies; only message in thread
From: gabravier at gmail dot com @ 2020-08-04 22:01 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 96473
           Summary: Very weird error message for invalid `wchar_t`
                    declaration
           Product: gcc
           Version: 11.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gabravier at gmail dot com
  Target Milestone: ---

unsigned wchar_t x;

This program results in this rather odd error message :

<source>:1:1: error: 'unsigned' specified with 'typeof'
  159 | unsigned wchar_t x;
      | ^~~~~~~~

This is of course a legal diagnostic, but the wording seems rather out of place
when (in my humble opinion) it instead should be something like "unsigned and
signed may not be used with wchar_t".

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-08-04 22:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-04 22:01 [Bug c++/96473] New: Very weird error message for invalid `wchar_t` declaration gabravier at gmail dot com

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).