kmeans: work around an ICE in clang-19 tests
This commit is contained in:
parent
379837bbc7
commit
428e5c683d
@ -17,7 +17,15 @@ main ()
|
||||
std::array<cruft::point3f,1> q;
|
||||
|
||||
cruft::kmeans (cruft::view{p}, cruft::view{q});
|
||||
tap.expect_eq (p, q, "single point, single k");
|
||||
// clang#19-rc2: ICE when instantiating p == q
|
||||
//
|
||||
// clang++-19: clang/include/clang/AST/DeclTemplate.h:1938:
|
||||
// void clang::ClassTemplateSpecializationDecl::setPointOfInstantiation(clang::SourceLocation):
|
||||
// Assertion `Loc.isValid() && "point of instantiation must be valid!"' failed.
|
||||
//
|
||||
// So just compare the items directly.
|
||||
static_assert (p.size () == q.size ());
|
||||
tap.expect_eq (p[0], q[0], "single point, single k");
|
||||
}
|
||||
|
||||
// create two vectors, check if the mean converges to their average
|
||||
|
Loading…
Reference in New Issue
Block a user