https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105044
--- Comment #3 from Johel Ernesto Guerrero Peña <johelegp at gmail dot com> --- Enough recompilations from the actual use-case show this error: ``` /home/johel/Documents/C++/Repos/Waarudo/tests/unit/test.waarudo.quantities.cpp: In substitution of ‘template<auto ...D> struct waarudo::is_unit@waarudo.quantities<const waarudo::unit@waarudo.quantities<D ...>*> [with auto ...D = {waarudo::ratio@waarudo.quantities{146097, 400}, (& waarudo::day@waarudo.quantities)}]’: /home/johel/Documents/C++/Repos/Waarudo/tests/unit/test.waarudo.quantities.cpp:21:57: required from here /home/johel/Documents/C++/Repos/Waarudo/tests/unit/test.waarudo.quantities.cpp:21:57: internal compiler error: tree check: expected tree that contains ‘typed’ structure, have ‘ggc_freed’ in convert_nontype_argument, at cp/pt.cc:7763 21 | static_assert(waarudo::is_unit<decltype(&waarudo::year)>::value); | ^~ 0x226d11c internal_error(char const*, ...) ???:0 0x8d094f tree_contains_struct_check_failed(tree_node const*, tree_node_structure_enum, char const*, int, char const*) ???:0 0xbc4daa lookup_template_class(tree_node*, tree_node*, tree_node*, tree_node*, int, int) ???:0 0xbafdb7 tsubst(tree_node*, tree_node*, int, tree_node*) ???:0 0xbbf9eb tsubst_template_args(tree_node*, tree_node*, int, tree_node*) ???:0 0xbae4e6 most_specialized_partial_spec(tree_node*, int) ???:0 0xbd7a1c instantiate_class_template(tree_node*) ???:0 0xc2fe01 complete_type(tree_node*) ???:0 0xb7a0db c_parse_file() ???:0 0xcb9cd1 c_common_parse_file() ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://bugs.archlinux.org/> for instructions. ```