From ad084e9d07b907cfe52961a1d43155d24626c415 Mon Sep 17 00:00:00 2001 From: Paolo Carlini Date: Tue, 11 Jul 2006 22:08:56 +0000 Subject: [PATCH] re PR libstdc++/28344 (Use of __alpha in tr1/random breaks Tru64 UNIX bootstrap) 2006-07-11 Paolo Carlini PR libstdc++/28344 * include/tr1/random (gamma_distribution<>:: gamma_distribution(const result_type&)): Don't use __alpha as parameter name, a predefined macro on Alpha systems. From-SVN: r115355 --- libstdc++-v3/ChangeLog | 7 +++++++ libstdc++-v3/include/tr1/random | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 85b05064a1c..6f143dc8456 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,10 @@ +2006-07-11 Paolo Carlini + + PR libstdc++/28344 + * include/tr1/random (gamma_distribution<>:: + gamma_distribution(const result_type&)): Don't use __alpha as + parameter name, a predefined macro on Alpha systems. + 2006-07-11 Paolo Carlini PR libstdc++/28290 diff --git a/libstdc++-v3/include/tr1/random b/libstdc++-v3/include/tr1/random index 897d871a5be..f90c8d1e110 100644 --- a/libstdc++-v3/include/tr1/random +++ b/libstdc++-v3/include/tr1/random @@ -1980,8 +1980,8 @@ _GLIBCXX_BEGIN_NAMESPACE(tr1) * Constructs a gamma distribution with parameters @f$ \alpha @f$. */ explicit - gamma_distribution(const result_type& __alpha = result_type(1)) - : _M_alpha(__alpha) + gamma_distribution(const result_type& __alpha_val = result_type(1)) + : _M_alpha(__alpha_val) { _GLIBCXX_DEBUG_ASSERT(_M_alpha > 0); } -- 2.30.2