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: unassignedclangb...@nondot.org
          Reporter: b...@lindev.ch
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org,
                    neeil...@live.com, richard-l...@metafoo.co.uk

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
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to