Open dirkmueller opened 1 year ago
@Zygo any plans to fix this?
I think you're just going to have to fix gcc for this one.
I can't reproduce this on Debian's g++-13 (Debian 13.1.0-1). I could reproduce two other build failures on gcc 13 and clang 16, which I've pushed fixes for.
Do you have a patch that fixes this failure? (other than CXXFLAGS += -Wno-error=dangling-pointer
)
this is this code:
https://github.com/Zygo/bees/blob/6ee5da7d77a46a7f70a15184307e53504f2f14ab/include/crucible/cache.h#L187-L192
apparently the compiler isn't smart enough that a .swap() operation here is sort of a safe operation. I'm saying sort of because I'm not sure the mutex actually acts as a memory barrier, and without that it would be unsafe.