Closed mia-0 closed 1 month ago
Is there a genuine need to use Boost’s flat_map
here, as opposed to just std::map
?
Performance-wise it doesn’t seem to matter in practice which implementation is used, so even if this is just a bug in either GCC or Boost, I would suggest replacing it.
When building with Boost 1.85.0 and GCC >= 13 with optimization level 2 or greater, Aegisub as well as the thesaurus test case crash here: https://github.com/arch1t3cht/Aegisub/blob/80491bacbfe2b684d1b2be0e031c72e27e39f85b/libaegisub/common/thesaurus.cpp#L48
The same does not occur with Clang 18 or lower optimization levels, so this might be a GCC bug.
System is openSUSE Tumbleweed 20240524.
Backtrace: