https://gcc.gnu.org/bugzilla/show_bug.cgi?id=119460
--- Comment #9 from anlauf at gcc dot gnu.org --- The dump-tree has the following call: _gfortran_reduce_scalar ((void *) &sr.5, &parm.4, __reduce_wrapper_t_add_test_reduce, 0B, 0B, 0B, 0B); However, setting a breakpoint at reduce.c:234: With -m64: Breakpoint 1, _gfortran_reduce_scalar (res=0x7fffffffd038, array=0x7fffffffcec0, operation=0x402c17 <test_reduce::__reduce_wrapper_t_add_test_reduce>, dim=0x0, mask=0x0, identity=0x0, ordered=0x0) at ../../../gcc-trunk/libgfortran/intrinsics/reduce.c:234 234 reduce (&ret, array, operation, dim, mask, identity, ordered); This looks unsuspicious. With -m32: Breakpoint 1, _gfortran_reduce_scalar (res=0xffffc1c8, array=0xffffc358, operation=0xffffc21c, dim=0x804a17f <test_reduce::__reduce_wrapper_t_add_test_reduce>, mask=0x0, identity=0x0, ordered=0x0) at ../../../../gcc-trunk/libgfortran/intrinsics/reduce.c:234 234 reduce (&ret, array, operation, dim, mask, identity, ordered); Why is dim /= NULL?