From: Claudio Jeker Subject: Re: make bonnie++ compile with modern gcc To: ports@openbsd.org Date: Mon, 17 Nov 2025 17:45:48 +0100 On Mon, Nov 17, 2025 at 05:30:39PM +0100, Jeremie Courreges-Anglas wrote: > On Mon, Nov 17, 2025 at 03:31:54PM +0100, Claudio Jeker wrote: > > gcc added something as data into their std namespace of libstdc++ and this > > code tripps over that. This is what other distros did, simply rename data > > to something else. > > I find it a bit misleading to rename "data" to "stddata" in order to > avoid a name clash with "std::data". You could probably just use > "::data" to use the default namespace and avoid the clash due to > "using namespace std;" (compile-tested). > > Unless there are good reasons not to do that, but I'm no C++ lawyer... > > Anyway, whatever name you'll be using, the fix makes sense. I just grabbed the solution which seems to be common in various linux repos. I think this could should not use the std namespace in the first place but I did not invest more time into this. -- :wq Claudio