[Bug c/43673] Incorrect warning: use of 'D' length modifier with 'a' type character
egallager at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 26 17:13:00 GMT 2017
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);
^
More information about the Gcc-bugs
mailing list