[Bug 278711] math/sprng: BROKEN with recent clang

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 May 2024 10:54:45 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278711

Dimitry Andric <dim@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dim@FreeBSD.org

--- Comment #1 from Dimitry Andric <dim@FreeBSD.org> ---
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.