Issue 152019
Summary Clang accepts invalid parenthesized template name in deduction guide declaration
Labels clang
Assignees
Reporter zygoloid
    Along the same lines as #152018, but a somewhat different case:

```c++
template<typename T> struct X {};
(X)() -> X<int>;
```

Clang accepts, but this is invalid: the [syntax for deduction guides](https://eel.is/c++draft/temp.deduct.guide) does not allow parentheses around the *template-name*.

While GCC accepts this, other implementations (EDG, MSVC) do not, so it would probably make sense for clang to also reject.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to