tcbrindle / flux

A C++20 library for sequence-orientated programming
https://tristanbrindle.com/flux/
Boost Software License 1.0
441 stars 28 forks source link

Clang crash #179

Closed ahdnm closed 2 months ago

ahdnm commented 4 months ago

Similar to the issue #174, this code also causes clang to crash https://flux.godbolt.org/z/3fT4r548j

tcbrindle commented 4 months ago

Hi @ahdnm, thanks for the report. I've added it to Clang issue: https://github.com/llvm/llvm-project/issues/85148

Meanwhile, it looks like I'll have to come up with a better workaround than #175

tcbrindle commented 2 months ago

Hi @ahdnm, it looks like this bug was fixed in Clang 18.1.3 (https://github.com/llvm/llvm-project/issues/86769).

I've tested locally with 18.1.4 and this example now compiles as expected. Testing with Clang trunk on Compiler Explorer seems to work as well: https://flux.godbolt.org/z/bb8dcsqY8 (CE doesn't have any 18.1 point releases).

So hopefully this is now sorted, but if you have any more problems please let me know :)