]> www.ginac.de Git - ginac.git/commitdiff
[PATCH] Fix ambiguity in calling complex constructor (GCC 15). master
authorVladimir V. Kisil <V.Kisil@leeds.ac.uk>
Tue, 29 Apr 2025 22:16:26 +0000 (00:16 +0200)
committerRichard Kreckel <kreckel@ginac.de>
Tue, 29 Apr 2025 22:16:26 +0000 (00:16 +0200)
Reported by Andrey G. Grozin <A.G.Grozin@inp.nsk.su>.

check/exam_archive.cpp

index 2ca13a8e11b2d7c2b4c5c4fe9366dab52be3ceb7..5821c97a9dc993f10465168f07621e7a57ca1624 100644 (file)
@@ -101,10 +101,10 @@ unsigned numeric_complex_bug()
        const cl_I one(1);
        const cl_R three_fp = cl_float(3.0);
        std::vector<cl_N> 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);