https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278711
Bug ID: 278711
Summary: math/sprng: BROKEN with recent clang
Product: Base System
Version: 15.0-CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: bin
Assignee: [email protected]
Reporter: [email protected]
With recent clang on -CURRENT, SPRNG does not compile anymore:
c++ -DHAVE_CONFIG_H -I. -I.. -isystem /usr/local/include -I../include -I. -O2
-pipe -fstack-protector-strong -isystem /usr/local/include -fno-strict-aliasing
-isystem /usr/local/include -Wno-deprecated -DLONG64=long -MT
wolff_tmp-wolff.o -MD -MP -MF .deps/wolff_tmp-wolff.Tpo -c -o wolff_tmp-wolff.o
`test -f 'wolff.cpp' || echo './'`wolff.cpp
wolff.cpp:76:2: error: reference to 'stack' is ambiguous
76 | stack[++Ipt]=nnJ;
| ^
wolff.cpp:17:27: note: candidate found by name lookup is 'stack'
17 | int lattice_size, *spin, *stack, nsites;
| ^
/usr/include/c++/v1/stack:156:28: note: candidate found by name lookup is
'std::stack'
156 | class _LIBCPP_TEMPLATE_VIS stack {
| ^
wolff.cpp:81:4: error: reference to 'stack' is ambiguous
81 | i=stack[Ipt];
| ^
wolff.cpp:17:27: note: candidate found by name lookup is 'stack'
17 | int lattice_size, *spin, *stack, nsites;
| ^
/usr/include/c++/v1/stack:156:28: note: candidate found by name lookup is
'std::stack'
156 | class _LIBCPP_TEMPLATE_VIS stack {
| ^
wolff.cpp:219:3: error: reference to 'stack' is ambiguous
219 | stack = static_cast<int *>(malloc(nsites*sizeof(int)));
| ^
wolff.cpp:17:27: note: candidate found by name lookup is 'stack'
17 | int lattice_size, *spin, *stack, nsites;
| ^
/usr/include/c++/v1/stack:156:28: note: candidate found by name lookup is
'std::stack'
156 | class _LIBCPP_TEMPLATE_VIS stack {
| ^
wolff.cpp:220:16: error: reference to 'stack' is ambiguous
220 | if(!spin || !stack)
| ^
wolff.cpp:17:27: note: candidate found by name lookup is 'stack'
17 | int lattice_size, *spin, *stack, nsites;
| ^
/usr/include/c++/v1/stack:156:28: note: candidate found by name lookup is
'std::stack'
156 | class _LIBCPP_TEMPLATE_VIS stack {
| ^
4 errors generated.
Full log available at
https://pkg-status.freebsd.org/beefy18/data/main-amd64-default/p3d9e1b959610_sb07689d1f2a/logs/SPRNG-5.0_2.log
--
You are receiving this mail because:
You are the assignee for the bug.