Skip to content

Fold accumulator neutral element uninitialised, fixes #2310

Hans-Nikolai Viessmann requested to merge hans/sac2c:issue-2310-fix into develop

The fold WL accumulator was not being correctly updated by MMV, meaning that a dangling declaration but no initialisation persisted. This issue crops up when generating CUDA code, as the example in #2310 (closed) leads to the accumulator neutral element being passed into the CUDA kernel function.

Fixes #2310 (closed); see issue for more details.

Edited by Hans-Nikolai Viessmann

Merge request reports