public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109034] New: Missing space in diagnostics about '^' and '<<'
@ 2023-03-05 23:10 roland.illig at gmx dot de
  2023-03-05 23:13 ` [Bug c/109034] " roland.illig at gmx dot de
  0 siblings, 1 reply; 2+ messages in thread
From: roland.illig at gmx dot de @ 2023-03-05 23:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109034
           Summary: Missing space in diagnostics about '^' and '<<'
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: roland.illig at gmx dot de
  Target Milestone: ---

> "result of %<%wu^%wu%> is %wu;"
> " did you mean %<1 << %wu%> (%wu)?",

Since '^'  is a binary operator, it is usually enclosed in spaces.
Please confirm that you really want to omit the spaces in this place.
If you want to omit the spaces, please document it in a /* TRANSLATORS: */
comment.

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

* [Bug c/109034] Missing space in diagnostics about '^' and '<<'
  2023-03-05 23:10 [Bug c/109034] New: Missing space in diagnostics about '^' and '<<' roland.illig at gmx dot de
@ 2023-03-05 23:13 ` roland.illig at gmx dot de
  0 siblings, 0 replies; 2+ messages in thread
From: roland.illig at gmx dot de @ 2023-03-05 23:13 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #1 from Roland Illig <roland.illig at gmx dot de> ---
While here:

> "you can silence this warning by using a hexadecimal constant"
> " (%wx rather than %wd)",

%x requires an unsigned argument, %wd requires a signed argument, so %wd should
probably be %wu instead.

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

end of thread, other threads:[~2023-03-05 23:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-05 23:10 [Bug c/109034] New: Missing space in diagnostics about '^' and '<<' roland.illig at gmx dot de
2023-03-05 23:13 ` [Bug c/109034] " roland.illig at gmx dot de

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