koplas wrote:

Using `-fgen-reduced-bmi` currently fails for me with a case that looks like 
this:
```C++
// a.hpp
  template <typename T>
  void ignore(T const &) noexcept {}
  
  inline void resultCheck(char const *message) {
      ignore(message);
  }
  
// b.cppm
    module;
    #include "a.hpp"
    export module b;
    
    export {
        using ignore;
        using resultCheck;
    }
    
// c.cppm
    export module c;
    import b;
    
    export void test() {
        resultCheck(nullptr);
    }
```
This will result in this linker error: `undefined reference to void ignore<char 
const*>(char const* const&)`.
Removing `-fgen-reduced-bmi` will result in linking without errors. Do I need 
to pass certain flags to CMake?

https://github.com/llvm/llvm-project/pull/85050
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to