Compilation with -fmodules-ts and use inside of a module #3472
Labels
kind: bug
release item: 🐛 bug fix
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
Milestone
Description
Hi,
When just including #include <nlohmann/json.hpp> in a module, the compiler complains about impossible references.
It is not happening when not inside a module.
Reproduction steps
Just include the header inside a module and compile with -fmodules-ts.
This is the triggering flag, really.
Expected vs. actual results
No error
Minimal code example
Error messages
Compiler and operating system
Linux GCC-12.1
Library version
Latest
Validation
develop
branch is used.The text was updated successfully, but these errors were encountered: