[committed] libstdc++: Fix -Wreorder warning in std::philox_engine

Jonathan Wakely jwakely@redhat.com
Tue Oct 7 11:16:40 GMT 2025


libstdc++-v3/ChangeLog:

	* include/bits/random.h (philox_engine(result_type)): Reorder
	ctor-initializer-list to match declaration order.
---

Tested powerpc64le-linux. Pushed to trunk.

 libstdc++-v3/include/bits/random.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libstdc++-v3/include/bits/random.h b/libstdc++-v3/include/bits/random.h
index 4049a77fbf4c..ebc863e84534 100644
--- a/libstdc++-v3/include/bits/random.h
+++ b/libstdc++-v3/include/bits/random.h
@@ -1778,7 +1778,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
 
 	explicit
 	philox_engine(result_type __value)
-	: _M_x{}, _M_y{}, _M_k{}, _M_i(__n - 1)
+	: _M_x{}, _M_k{}, _M_y{}, _M_i(__n - 1)
 	{ _M_k[0] = __value & max(); }
 
 	/** @brief seed sequence constructor for %philox_engine
-- 
2.51.0



More information about the Libstdc++ mailing list