| raw e-mail | index | archive | help
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: bugs@FreeBSD.org Reporter: thierry@FreeBSD.org 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-alia= sing -isystem /usr/local/include -Wno-deprecated -DLONG64=3Dlong -MT wolff_tmp-wolff.o -MD -MP -MF .deps/wolff_tmp-wolff.Tpo -c -o wolff_tmp-wol= ff.o `test -f 'wolff.cpp' || echo './'`wolff.cpp wolff.cpp:76:2: error: reference to 'stack' is ambiguous 76 | stack[++Ipt]=3DnnJ; | ^ 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=3Dstack[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 =3D 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/p3d9e1b95961= 0_sb07689d1f2a/logs/SPRNG-5.0_2.log --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?>