With C command line option -std=gnu99
double floating-point constants with either 'd' or 'D' suffix
are not accepted by gcc 4.3.2-7 running on Intel x86/x87 Pentium 4
running Fedora Core 10 Linux
Part of gcc -v is:
gcc version 4.3.2 20081105 (Red Hat 4.3.2-7) (GCC) 

#define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */
double d1 = 1.0d;  /* binary double (yes) versus decimal double (no) */
double d2 = 2.0D;

gets
error: invalid suffix "d" on floating constant
error: invalid suffix "D" on floating constant


-- 
           Summary: double floating point suffix of 'd' and 'D' not accepted
           Product: gcc
           Version: 4.3.2
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tydeman at tybor dot com
  GCC host triplet: 4.3.2
GCC target triplet: 4.3.2


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39027

Reply via email to