As discussed on IRC here is as far as I could currently minimize the repro.
To repro, nix-shell and then call cabal repl.
I haven't been able to update things yet so it's running with old code and an old pinned version of nixpkgs.
The clang-pure directory contains the slightly modified clang-pure.
The significant changes wrt. the issue should (?) be limited to the cabal files.
repro.zip