Open KeinNiemand opened 1 week ago
The exact compiler error:
~...can you post it in English?~, oh, wait, it's an ICE. I guess it is unlikely to say anything overly helpful, regardless of language 😅
You're not the first to have issues with modules and toml++: #172 Sadly I'm unlikely to find time to do anything about this. Can you share a link to your bug report ticket? That way I can at least track it, up-vote it, et cetera.
Environment
toml++ version and/or commit hash:
Commit Hash: 1f7884e59165e517462f922e7b6de131bd9844f3
Compiler:
MSVC 2019 Version 1940
C++ standard mode:
C++20
Target arch:
x64
Library configuration overrides:
None, using default configurations
Relevant compilation flags:
Describe the bug
When attempting to use the
toml++
library within a C++20 module, I encounter an internal compiler error during compilation. The error seems to occur when the library header (toml.hpp
) is included in the global module fragment of a C++20 module. The issue appears specific to scenarios where the library is included and utilized within the module definition.The exact compiler error:
Steps to reproduce (or a small repro code sample)
toml++
using the global module fragment in a module file.toml++
within a module's function.Example code snippet:
Additional information
The internal compiler error is sound like a compiler bug with modules, but I have no idea what in toml++ breaks the compiler which I think is a reason why they ignored my report so far. When you include it in a c++20 module. Fixing this would require finding a workaround for whatever causes the internal compiler error, or maybe providing a c++20 module version of the library.