Issue |
147778
|
Summary |
Error: implicit instantiation of template within its own definition
|
Labels |
new issue
|
Assignees |
|
Reporter |
Eczbek
|
https://godbolt.org/z/Pbj4rnsvW
GCC and MSVC accept this.
```cpp
template<int...> struct A {
static constexpr auto x = []<int> { return A<>(); };
};
int main() {}
```
```
<source>:2:45: error: implicit instantiation of template 'A<>' within its own definition
2 | static constexpr auto x = []<int> { return A<>(); };
| ^
1 error generated.
Compiler returned: 1
```
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs