sdkrystian wrote:

@usx95 Minimal reproducer:

```cpp
// input.cppm

export module input;

export template<int N>
constexpr int f();

template<int N>
class B {
  template<int J>
  friend constexpr int f();
};

template struct B<0>;

template<int N>
constexpr int f() {
  return N;
}
```

```cpp
// input.cpp

import input;

static_assert(f<1>() == 1); // error: static assertion failed
```

I already have a patch that will fix this and the crash I posted a few days 
ago. Just waiting until two of my other PRs are merged first before I open a PR.

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

Reply via email to