[Bug d/96429] d: Pointer subtraction uses TRUNC_DIV_EXPR
cvs-commit at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Aug 4 08:26:12 GMT 2020
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96429
--- Comment #2 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Iain Buclaw <ibuclaw@gcc.gnu.org>:
https://gcc.gnu.org/g:3a3fda119036f46bfa70e06e7c69e04e78040079
commit r11-2536-g3a3fda119036f46bfa70e06e7c69e04e78040079
Author: Iain Buclaw <ibuclaw@gdcproject.org>
Date: Mon Aug 3 22:35:38 2020 +0200
d: Fix PR96429: Pointer subtraction uses TRUNC_DIV_EXPR
gcc/d/ChangeLog:
PR d/96429
* expr.cc (ExprVisitor::visit (BinExp*)): Use EXACT_DIV_EXPR for
pointer diff expressions.
gcc/testsuite/ChangeLog:
PR d/96429
* gdc.dg/pr96429.d: New test.
More information about the Gcc-bugs
mailing list