stacks: fails with clang

Fixes #955.