From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8362 invoked by alias); 26 Aug 2014 11:07:39 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 8313 invoked by uid 48); 26 Aug 2014 11:07:35 -0000 From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/62256] /usr/include/c++/4.8/tr1/random.tcc:792:2: error: no matching function for call to 'min' Date: Tue, 26 Aug 2014 11:07:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status cf_reconfirmed_on everconfirmed Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-08/txt/msg01741.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=62256 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2014-08-26 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- This would fix it, but I'm not planning to commit it because I don't think anyone cares about TR1 in current versions of GCC: --- a/libstdc++-v3/include/tr1/random.tcc +++ b/libstdc++-v3/include/tr1/random.tcc @@ -789,11 +789,11 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION const int __w = std::numeric_limits::digits; const result_type __m1 = - std::min(result_type(_M_b1.max() - _M_b1.min()), + std::min(result_type(_M_b1.max() - _M_b1.min()), __detail::_Shift::__value - 1); const result_type __m2 = - std::min(result_type(_M_b2.max() - _M_b2.min()), + std::min(result_type(_M_b2.max() - _M_b2.min()), __detail::_Shift::__value - 1); // NB: In TR1 s1 is not required to be >= s2.