-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Type mismatch for pointer to template template function #48423
Comments
Clang implements the language change that makes this code valid, but doesn't enable it by default. As a workaround, you can use -frelaxed-template-template-args to accept this code. |
I see... Thank you! |
*** Bug llvm/llvm-bugzilla-archive#49224 has been marked as a duplicate of this bug. *** |
Is there any particular reason why Clang doesn't enable this by default ? |
mentioned in issue llvm/llvm-bugzilla-archive#49224 |
@llvm/issue-subscribers-clang-frontend |
Duplicate of #42224 |
Extended Description
If a function is a template template function (template<template class> void foo(int&)), and a template template parameter has a default value, it does not fit to function pointer type.
Example:
Godbolt: https://godbolt.org/z/enhYs8
With GCC and MSVC, example compiles fine.
The text was updated successfully, but these errors were encountered: