From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D7A053858414; Mon, 14 Feb 2022 16:57:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D7A053858414 From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: =?UTF-8?B?W0J1ZyBjKysvMTA0NTA3XSBbMTAvMTEvMTIgUmVncmVzc2lvbl0g?= =?UTF-8?B?aW50ZXJuYWwgY29tcGlsZXIgZXJyb3I6IHVuZXhwZWN0ZWQgZXhwcmVzc2lv?= =?UTF-8?B?biDigJgoaW50KShfX3JldCnigJkgb2Yga2luZCBjYXN0X2V4cHI=?= Date: Mon, 14 Feb 2022 16:57:18 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: 11.2.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: ppalka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 10.4 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: everconfirmed short_desc bug_status cf_reconfirmed_on cf_known_to_fail 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 Feb 2022 16:57:18 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D104507 Patrick Palka changed: What |Removed |Added ---------------------------------------------------------------------------- Ever confirmed|0 |1 Summary|[10/11 Regression] internal |[10/11/12 Regression] |compiler error: unexpected |internal compiler error: |expression =E2=80=98(int)(__ret)=E2=80=99 |unexpected= expression |of kind cast_expr |=E2=80=98(int)(__ret)=E2= =80=99 of kind | |cast_expr Status|UNCONFIRMED |NEW Last reconfirmed| |2022-02-14 Known to fail| |12.0 --- Comment #6 from Patrick Palka --- (In reply to Andrew Pinski from comment #3) > (In reply to Daniel Nelson from comment #2) > > Had a few moments to do some testing/bisecting, and found the commit th= at > > fixed this in mainline. >=20 > I kinda of see how that might help here but not really. I wonder if there= is > another testcase which might shows the issue on the trunk still. trunk crashes on this version: #define ERR_MAX -20 #define s_errmsg(r) \ _k_errmsg[(((int)r) <=3D 0 && r) ? -(r) : -ERR_MAX] extern const char *_k_errmsg[]; template inline int DoFoo() { int __ret =3D 0; const char *n =3D s_errmsg(__ret); return __ret; }=