https://bugs.llvm.org/show_bug.cgi?id=40543

            Bug ID: 40543
           Summary: double floating point suffixes D and d not accepted
           Product: clang
           Version: 7.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

The line

double d = 0.4D;

causes clang to barf with

test.c:2:14: error: invalid suffix 'D' on floating constant

gcc accepts that code, and this seems to be the correct behavior at least for
C99+.
(see this gcc bug report from 10 years ago:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=39027)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to