c++ – C++20 modules error when including the iostream header in Clang

Consider the following files: math.cppm export module math; export namespace math { int sum(int num1, int num2); int multiply(int num1, int num2); } /* Compiled with: clang++ -c –std=c++20 -stdlib=libc++ -Xclang -emit-module-interface –precompile -o math.pcm math.cppm */ math.cpp module; #include <iostream> // HERE it’s the problem module math; // Implementation of the definitions on the … Read more