public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/43673] New: Incorrect warning: use of 'D' length modifier with 'a' type character
@ 2010-04-07 9:35 vincent at vinc17 dot org
0 siblings, 0 replies; only message in thread
From: vincent at vinc17 dot org @ 2010-04-07 9:35 UTC (permalink / raw)
To: gcc-bugs
With:
#define __STDC_WANT_DEC_FP__
#include <stdio.h>
int main (void)
{
double d = 0.1;
_Decimal64 e = 0.1dd;
printf ("%.20f\n", d);
printf ("%Da\n", e);
printf ("%De\n", e);
printf ("%Df\n", e);
printf ("%Dg\n", e);
return 0;
}
$ gcc-snapshot -Wall tst.c
tst.c: In function 'main':
tst.c:9:3: warning: use of 'D' length modifier with 'a' type character
while WG14/N1312 says:
D Specifies that a following a, A, e, E, f, F, g, or G conversion specifier
applies to a _Decimal64 argument.
--
Summary: Incorrect warning: use of 'D' length modifier with 'a'
type character
Product: gcc
Version: unknown
Status: UNCONFIRMED
Severity: minor
Priority: P3
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: vincent at vinc17 dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43673
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-07 9:35 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-07 9:35 [Bug c/43673] New: Incorrect warning: use of 'D' length modifier with 'a' type character vincent at vinc17 dot org
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).