// PR c++/103341 // { dg-do compile { target c++20 } } template concept same_as = __is_same(T, U); template same_as auto v1a = 1; template same_as auto v1b = T(); template same_as auto v2a = 1; // { dg-error "constraints" } template same_as auto v2b = T(); // { dg-error "constraints" } template int v1a; template int v1b; template int v2a; // { dg-message "required from here" } template int v2b; // { dg-message "required from here" }