Skip to content

Commit

Permalink
Fix missing ModExp vector check
Browse files Browse the repository at this point in the history
  • Loading branch information
dkorpel committed Jan 21, 2025
1 parent b2a54c5 commit 4e5c19e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions compiler/src/dmd/expressionsem.d
Original file line number Diff line number Diff line change
Expand Up @@ -12805,6 +12805,12 @@ private extern (C++) final class ExpressionSemanticVisitor : Visitor
if (commonArithBinOpSemantic(exp))
return;

if (!target.isVectorOpSupported(exp.type.toBasetype(), exp.op, exp.e2.type.toBasetype()))
{
result = exp.incompatibleTypes();
return;
}

if (exp.type.isFloating())
{
exp.type = exp.e1.type;
Expand Down

0 comments on commit 4e5c19e

Please sign in to comment.