Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Needs to add -Wno-missing-template-arg-list-after-template-kw to compile with clang19 #221

Open
IvanNSBS opened this issue Oct 18, 2024 · 2 comments

Comments

@IvanNSBS
Copy link

When compiling with clangd 19, this error happens:

In file included from /home/ivansbs/ivan/test_reflect/src/main.cpp:5: In file included from /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl.hpp:32: In file included from /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl/Pattern.hpp:4: In file included from /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl/PatternValidator.hpp:9: /home/ivansbs/ivan/test_reflect/reflect-cpp/include/rfl/thirdparty/ctre.hpp:5439:27: error: a template argument list is expected after a name prefixed by the template keyword [-Wmissing-template-arg-list-after-template-kw] 5439 | return Method::template exec();

and i need to add -Wno-missing-template-arg-list-after-template-kw to be able to compile with it. This issue does not happen when compiling with gcc.
Using CMake and Ninja Build as well.

@liuzicheng1987
Copy link
Contributor

Ok, thanks for flagging this.

@Urfoex
Copy link
Collaborator

Urfoex commented Oct 28, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants