From 97b3c165ba38a5c6dbed4091bd81962b2c4e124d Mon Sep 17 00:00:00 2001 From: "Vladimir V. Kisil" Date: Wed, 30 Apr 2025 00:16:26 +0200 Subject: [PATCH] [PATCH] Fix ambiguity in calling complex constructor (GCC 15). Reported by Andrey G. Grozin . --- check/exam_archive.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/check/exam_archive.cpp b/check/exam_archive.cpp index 2ca13a8e..5821c97a 100644 --- a/check/exam_archive.cpp +++ b/check/exam_archive.cpp @@ -101,10 +101,10 @@ unsigned numeric_complex_bug() const cl_I one(1); const cl_R three_fp = cl_float(3.0); std::vector numbers = { - complex(one, one), - complex(one, three_fp), - complex(three_fp, one), - complex(three_fp, three_fp) + cln::complex(one, one), + cln::complex(one, three_fp), + cln::complex(three_fp, one), + cln::complex(three_fp, three_fp) }; for (auto & n : numbers) { result += checker(n); -- 2.49.0