-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
[clang][ice-on-invalid] TemplateArgument::getPackAsArray()
assertion 'getKind() == Pack'
#134441
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
crash
Prefer [crash-on-valid] or [crash-on-invalid]
Comments
@llvm/issue-subscribers-clang-frontend Author: Eric Niebler (ericniebler)
The following C++20 code causes clang trunk to ICE:
template <class Int>
struct wrap {
constexpr wrap(Int i): value(i) {}
Int value;
};
template <class T, wrap<T>... Is>
struct extents {
};
template <int... Is>
using Shape = extents<int, Is...>;
template <class T, Shape S>
void test() {}
int main() {
constexpr Shape<256> s;
auto fn = test<int, s>;
} result:
repro: <details>
</details> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
clang:frontend
Language frontend issues, e.g. anything involving "Sema"
crash
Prefer [crash-on-valid] or [crash-on-invalid]
The following C++20 code causes clang trunk to ICE:
result:
repro:
https://godbolt.org/z/qsn8bcn3e
Stack trace
The text was updated successfully, but these errors were encountered: