Issue 139476
Summary out-of-line definition of constrained members is not accepted (new failing example of closed bug)
Labels new issue
Assignees
Reporter xaxazak
    [currently closed bug here](https://github.com/llvm/llvm-project/issues/49620) (maybe reopen that and close this one)

```
namespace moo
	{
		template <typename T>
		constexpr bool baa = true;
		
		template <typename T> requires baa<T>
		void caw();
	}

template <typename T> requires moo::baa<T>
void moo::caw() {}
```
[compiler-explorer](https://godbolt.org/z/vGoavxf7M)

(using -std=c++26)
clang (trunk): error: out-of-line definition of 'caw' does not match any declaration in namespace 'moo'
gcc: compiles successfully
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to