[Bug 278711] math/sprng: BROKEN with recent clang
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278711 --- Comment #3 from commit-h...@freebsd.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d05586213892764617a96edec7151b464b1906ff commit d05586213892764617a96edec7151b464b1906ff Author: Thierry Thomas AuthorDate: 2024-05-04 13:21:44 + Commit: Thierry Thomas CommitDate: 2024-05-04 13:32:02 + math/sprng: fix build with clang 18 This is not a bug of clang. Patch suggested by dim@. PR: 278711 .../files/patch-TESTS_mpitests_wolff.cpp (new) | 37 ++ math/sprng/files/patch-TESTS_wolff.cpp (new) | 37 ++ math/sprng/files/patch-TESTS_wolfftest.cpp (new) | 37 ++ 3 files changed, 111 insertions(+) -- You are receiving this mail because: You are the assignee for the bug.
[Bug 278711] math/sprng: BROKEN with recent clang
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278711 Thierry Thomas changed: What|Removed |Added Resolution|--- |FIXED Status|New |Closed --- Comment #2 from Thierry Thomas --- Committed, thanks Dimitry! -- You are receiving this mail because: You are the assignee for the bug.
[Bug 278711] math/sprng: BROKEN with recent clang
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278711 Dimitry Andric changed: What|Removed |Added CC||d...@freebsd.org --- Comment #1 from Dimitry Andric --- I would guess that the code in question has "using namespace std;" at the top? That is most likely the cause for this error: the local variable name 'stack' now conflicts with 'std::stack'. It would be more correct to remove the "using namespace std;" statement and fix up the instances of std types used in the source, but an easier fix is to rename the local 'stack' variable to something else, for instance 'stack_' or 'my_stack'. -- You are receiving this mail because: You are the assignee for the bug.
[Bug 278711] math/sprng: BROKEN with recent clang
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278711 Thierry Thomas changed: What|Removed |Added Assignee|b...@freebsd.org|toolchain@FreeBSD.org -- You are receiving this mail because: You are the assignee for the bug.