Public bug reported:

Version 20.0+dfsg-1.2

log snippet:
```
...
1653s In file included from src/unittest/gl_vec.cc:1:
1653s src/unittest/gl_vec.cc: In function ‘void 
____C_A_T_C_H____T_E_S_T____0()’:
1653s src/unittest/gl_vec.cc:24:20: error: call of overloaded ‘rsqrt(double)’ 
is ambiguous
1653s    24 |         CHECK(rsqrt(16.0 ) == 0.25 );
1653s       |               ~~~~~^~~~~~~
1653s src/unittest/gl_vec.cc:24:20: note: there are 3 candidates
1653s In file included from /usr/include/features.h:523,
1653s                  from 
/usr/include/x86_64-linux-gnu/c++/15/bits/os_defines.h:39,
1653s                  from 
/usr/include/x86_64-linux-gnu/c++/15/bits/c++config.h:727,
1653s                  from /usr/include/c++/15/cstddef:51,
1653s                  from Contrib/catch2/catch.hpp:328:
1653s /usr/include/x86_64-linux-gnu/bits/mathcalls.h:206:1: note: candidate 1: 
‘double rsqrt(double)’
1653s   206 | __MATHCALL (rsqrt,, (_Mdouble_ __x));
1653s       | ^~~~~~~~~~
1653s In file included from src/unittest/gl_vec.cc:2:
1653s src/video/gl_vec.hh:196:28: note: candidate 2: ‘float gl::rsqrt(float)’
1653s   196 | [[nodiscard]] inline float rsqrt(float x)
1653s       |                            ^~~~~
1653s src/video/gl_vec.hh:200:29: note: candidate 3: ‘double gl::rsqrt(double)’
1653s   200 | [[nodiscard]] inline double rsqrt(double x)
1653s       |                             ^~~~~
...
```

** Affects: openmsx (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2120875

Title:
  gl_vec.cc fails to compile with C23 with "error: call of overloaded
  ‘rsqrt(double)’ is ambiguous"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openmsx/+bug/2120875/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to