From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6137F3857345; Sat, 30 Sep 2023 10:45:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6137F3857345 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696070701; bh=ETzvaj9zDJNgrbfATW2yRFO//t86KLneVlpnkK2WWQ4=; h=From:To:Subject:Date:In-Reply-To:References:From; b=lMqyjJOZTwgnspyszZuos0HrYNAv+YEwKH9D6tshzzJwSy2xxPtRAHtzcEknAkGaN YNiA7/dH6yAz81ZLwATHp5OUsiuPFzZb6ReULQ2gl2R4kkd4g3o6LccxRxLckdKfWY MsCFu1ec5vimn29KiC/of05NYyTfj/CeQgiqC0hA= From: "slyfox at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBib290c3RyYXAvMTExNjQyXSBbMTQgUmVncmVzc2lvbl0g?= =?UTF-8?B?Ym9vdHN0cmFwNCBvciBwcm9maWxlZGJvb3RzdHJhcCBmYWlsdXJlOiBwb2x5?= =?UTF-8?B?LWludC5oOjQ1Mzo1OiBlcnJvcjogdG9vIG1hbnkgaW5pdGlhbGl6ZXJzIGZv?= =?UTF-8?B?ciDigJhsb25nIGludCBbMV3igJkgKHBvc3NpYmx5IHNpbmNlIHIxNC00MzM5?= =?UTF-8?B?LWdlYWE0MWE2ZGMxMjdkOCk=?= Date: Sat, 30 Sep 2023 10:45:00 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: bootstrap X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: slyfox at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: 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: 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=3D111642 --- Comment #5 from Sergei Trofimovich --- The default value is `-fchecking=3D2` there. `-fchecking=3D0` and `-fchecki= ng=3D1` work fine. This means `-fchecking=3D` slightly alters c++ template instanti= ation. I'll try to extract smaller example. The following workaround seems to restore the build: --- a/gcc/cp/pt.cc +++ b/gcc/cp/pt.cc @@ -29302,20 +29302,21 @@ tree build_non_dependent_expr (tree expr) { tree orig_expr =3D expr; tree inner_expr; /* When checking, try to get a constant value for all non-dependent expressions in order to expose bugs in *_dependent_expression_p and constexpr. This can affect code generation, see PR70704, so only do this for -fchecking=3D2. */ if (flag_checking > 1 + && false && cxx_dialect >=3D cxx11 /* Don't do this during nsdmi parsing as it can lead to unexpected recursive instantiations. */ && !parsing_nsdmi () /* Don't do this during concept processing either and for the same reason. */ && !processing_constraint_expression_p ()) fold_non_dependent_expr (expr, tf_none); STRIP_ANY_LOCATION_WRAPPER (expr);=