This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/43673] Incorrect warning: use of 'D' length modifier with 'a' type character
- From: "egallager at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Jul 2017 17:13:24 +0000
- Subject: [Bug c/43673] Incorrect warning: use of 'D' length modifier with 'a' type character
- Auto-submitted: auto-generated
- References: <bug-43673-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43673
Eric Gallager <egallager at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2017-07-26
CC| |egallager at gcc dot gnu.org
Ever confirmed|0 |1
--- Comment #2 from Eric Gallager <egallager at gcc dot gnu.org> ---
Confirmed, although for me it also prints an additional error about my target
lacking support for decimal floating point:
$ /usr/local/bin/gcc -Wall -c 43673.c
43673.c: In function ‘main’:
43673.c:7:2: error: decimal floating point not supported for this target
_Decimal64 e = 0.1dd;
^~~~~~~~~~
43673.c:9:13: warning: use of ‘D’ length modifier with ‘a’ type character has
either no effect or undefined behavior [-Wformat=]
printf ("%Da\n", e);
^