Issue 208137
Summary Clang rejects valid program when delete move ctor is used in decltype
Labels clang
Assignees
Reporter ranaanoop
    The following valid program is rejected by clang, gcc and msvc:
```
struct NoMove {
    NoMove(NoMove&&) = delete;
};

NoMove&& DeclVal();
void F1(...);
void     F2(auto);

using Type1 = decltype(F1(DeclVal()));   // #1: this compiles 
using Type2 = decltype(F2(DeclVal()));   // #2: this doesn't compile when it should
```

_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to