-
Notifications
You must be signed in to change notification settings - Fork 155
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
Very deep template instantiation stacks #1276
Labels
Comments
i haven't optimized for instantiation depth. yeah, there is probably some fat to cut in |
ericniebler
added a commit
that referenced
this issue
Mar 10, 2024
things are modestly better now. see your original link: https://gcc.godbolt.org/z/K45fxG75T. more needs to be done. |
Yes, it's a little bit better now, depth limit for Clang is 205 and for GCC is 141 (https://gcc.godbolt.org/z/9bG7PTnYs). |
ericniebler
added a commit
that referenced
this issue
May 18, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Just "hello world" example requires template depth limit be 229 for Clang 17.0.1 and 157 for GCC 13.2: https://gcc.godbolt.org/z/K45fxG75T. I think this is too much and cannot work in real world production code.
Do you have ideas what could be improved in this sense and why there are so deep template instantiation stacks?
Maybe something could be optimized in
__meta.hpp
?The text was updated successfully, but these errors were encountered: