Using gcc 4.3.2-7 on Intel Pentium 4 running Linux Fedora Core 10 with
-std=gnu99

/* DFP TR 24732 == WG14 / N1312 */
#define __STDC_WANT_DEC_FP__ /* Tell implementation that we want Decimal FP */
#pragma STDC FLOAT_CONST_DECIMAL64 ON /* unsuffixed => Decimal (not Binary) */

_Decimal64 d10 = 1.0DD / 3.0 ;     /* 3.0 should be treated as 3.0DD */

gets:

test7.c:5: warning: ISO C does not support decimal floating point
test7.c:5:18: warning: decimal float constants are a GCC extension
test7.c:5: error: can't mix operands of decimal float and other float types

NOTE:  This pragma is new with WG14 N1312 version of Decimal Floating Point
Technical Report (it replaced Translation Time Data Type (TTDT)).


-- 
           Summary: FLOAT_CONST_DECIMAL64 pragma not supported
           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=39037

Reply via email to