| Issue |
109869
|
| Summary |
[clang] clang-19 regression in template keyword
|
| Labels |
clang
|
| Assignees |
|
| Reporter |
Jannik2099
|
Apologies for the terrible title, but I don't even know what this language _expression_ is called.
Initially discovered when compiling [webkit-gtk](https://www.webkitgtk.org/) v2.44.1
```txt
/var/tmp/portage/net-libs/webkit-gtk-2.44.1/work/webkitgtk-2.44.1/Source/_javascript_Core/runtime/JSCast.h:239:33: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw]
239 | return Dispatcher::template inherits(from);
| ^
```
cvise gives me
```cpp
template <typename Target> void inherits() {
using Dispatcher = Target;
Dispatcher::template inherits0;
}
```
godbolt https://godbolt.org/z/c96Ez3jas
CC @mizvekov @sdkrystian as per discussion on discord.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs