https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91280
--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Richard Biener from comment #1) > Hmm, this has earlier errors: > > t.ii:123:20: error: invalid use of incomplete type ‘class > TensorMap<Trans_NS_Eigen_Tensor<int, 3, 0, int>, 0>’ > 123 | static const int NumInputDims = H<typename > ArgType::Dimensions>::value; > | ^~~~~~~~~~~~ > > so - too much testcase reduction? Yep. It's interesting that I don't see the error when I configure a compiler with --enable-checking=release. Lemme investigate that. > > But yeah, I can see what goes wrong - get_constraint_for_component_ref > doesn't expect get_constraint_for_1 on the base, here MEM[&decl + 16], > to return multiple constraints but when decl has subvars then if > &decl + 16 is not exactly at a subvar we'll include the next as well.