From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10778 invoked by alias); 21 Mar 2015 02:09:21 -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 10737 invoked by uid 55); 21 Mar 2015 02:09:17 -0000 From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/65500] [5 Regression] FAIL: 17_intro/headers/c++2014/all_attributes.cc (test for excess errors) Date: Sat, 21 Mar 2015 09:52: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: 5.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net X-Bugzilla-Status: UNCONFIRMED 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: 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: 2015-03/txt/msg02192.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65500 --- Comment #1 from dave.anglin at bell dot net --- On 2015-03-20, at 5:00 PM, danglin at gcc dot gnu.org wrote: > FAIL: 17_intro/headers/c++2014/all_attributes.cc (test for excess errors) > Excess errors: > /test/gnu/gcc/objdir/hppa2.0w-hp-hpux11.11/libstdc++-v3/include/shared_mutex:64:34: > error: narrowing conversion of '35985' from 'int' to 'short int' inside { } > > The define in sys/pthread.h is: > #define __LWP_RWLOCK_VALID 0x8c91 It looks like this bug was triggered by this change: 2015-03-18 Jonathan Wakely Torvald Riegel * acinclude.m4 (GLIBCXX_CHECK_GTHREADS): Check for pthread_rwlock_t. * config.h.in: Regenerate. * configure: Regenerate. * include/std/shared_mutex: Check _GLIBCXX_USE_PTHREAD_RWLOCK_T. (shared_timed_mutex::_M_rwlock): Use PTHREAD_RWLOCK_INITIALIZER. (shared_timed_mutex::lock_shared()): Retry on EAGAIN. (shared_timed_mutex::try_lock_shared_until()): Retry on EAGAIN and EDEADLK. At one time, GCC was permissive about system header issues, particularly when they aren't really a problem. Is this still the case? It looks like an include hack would fix but there's probably more issues like this. Dave -- John David Anglin dave.anglin@bell.net