aboutsummaryrefslogtreecommitdiff
path: root/gcc/d/dmd/importc.d
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/d/dmd/importc.d')
-rw-r--r--gcc/d/dmd/importc.d7
1 files changed, 3 insertions, 4 deletions
diff --git a/gcc/d/dmd/importc.d b/gcc/d/dmd/importc.d
index e4d5aa2..ece56c8d 100644
--- a/gcc/d/dmd/importc.d
+++ b/gcc/d/dmd/importc.d
@@ -243,16 +243,15 @@ Expression castCallAmbiguity(Expression e, Scope* sc)
case EXP.call:
auto ce = (*pe).isCallExp();
- auto ie = ce.e1.isIdentifierExp();
- if (ie && ie.parens)
+ if (ce.e1.parens)
{
- ce.e1 = expressionSemantic(ie, sc);
+ ce.e1 = expressionSemantic(ce.e1, sc);
if (ce.e1.op == EXP.type)
{
const numArgs = ce.arguments ? ce.arguments.length : 0;
if (numArgs >= 1)
{
- ie.parens = false;
+ ce.e1.parens = false;
Expression arg;
foreach (a; (*ce.arguments)[])
{