From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B92B53858D33; Sat, 7 Jan 2023 01:23:31 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B92B53858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673054611; bh=N5y0bf1EM3RAw1vPMsvAWafqF15q621jhjejDKWTYqA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=WD0G88ZbcyVXG9CtuRnu+rBFWPN9I+KevmDM/E5DeI0/xHTsf2CnW4O/KI0bKayhO HNrqbC1AlM6UFKNFK6xb66PaQ6c3FaM5R2LQ6pIpcr22RCTkXns+3HenspN2/Laf6e Owr58qxsEDuyVUngWV9SN4c4XCztg2z4wdn9JiTo= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108221] Building cross compiler for H8 family fails at libstdc++-v3/src/c++20/tzdb.cc Date: Sat, 07 Jan 2023 01:23:31 +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: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D108221 --- Comment #9 from Jonathan Wakely --- The reason it fails is here: D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:1= 47:7: note: candidate: 'constexpr std::span<_Type, _Extent>::span() requires _Ex= tent + 1 <=3D 1 [with _Type =3D char; short unsigned int _Extent =3D 65535]' 147 | span() noexcept | ^~~~ D:/Works/xcomp/gcc-build/h8300-elf/normal/int32/libstdc++-v3/include/span:1= 47:7: note: constraints not satisfied The requires expression fails if size_t promotes to int, which is true for bizarre mode.=