From 9212dc43006a07516eccc59a9bd2efb494695410 Mon Sep 17 00:00:00 2001 From: Martin Kinkelin Date: Sat, 22 Jul 2023 12:45:24 +0200 Subject: [PATCH] Disable DMD-specific lexer kludge wrt. C `long double` literals Fixing dmd-testsuite's compilable/testcomplex.i for targets with 64-bit real. --- dmd/lexer.d | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dmd/lexer.d b/dmd/lexer.d index 6e6add1dfbc..b5f6617b99a 100644 --- a/dmd/lexer.d +++ b/dmd/lexer.d @@ -2601,8 +2601,11 @@ class Lexer goto case 'L'; case 'L': ++p; +version (IN_LLVM) { /* *always* map C `long double` literals to D `real` ones */ } else +{ if (Ccompile && long_doublesize == 8) goto default; +} result = TOK.float80Literal; break; }