Skip to content

Commit

Permalink
Disable DMD-specific lexer kludge wrt. C long double literals
Browse files Browse the repository at this point in the history
Fixing dmd-testsuite's compilable/testcomplex.i for targets with
64-bit real.
  • Loading branch information
kinke committed Jul 22, 2023
1 parent cfb229b commit 9212dc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dmd/lexer.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 9212dc4

Please sign in to comment.