From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CF9C639DC4F1; Thu, 12 Mar 2020 22:54:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CF9C639DC4F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1584053651; bh=6DGaelJ44Uipdt2UOJwo6TjnNcYzUI7QaYH9MlPZYzg=; h=From:To:Subject:Date:In-Reply-To:References:From; b=LVG+pFU7R0WzoTFjLSvO0+1YbsNplQ9y2JrfD08qzHxIlgRlX/foPh1N4hoFfWHFu rRWRoRdcgjDVYDdW9l+k2xA3SKxP1DZfUE/GD4vTcMzHZfP0gTylJjckg+DxQVQub/ otN87N7AM3/zxdsNjTEWvhV+A+K14aw6I2stRl6Q= From: "ppalka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/92010] [8/9/10 Regression] gcc internal error since 8x on warning write-strings Date: Thu, 12 Mar 2020 22:54:11 +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: 9.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: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: ppalka at gcc dot gnu.org X-Bugzilla-Target-Milestone: 8.5 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 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: Thu, 12 Mar 2020 22:54:11 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D92010 --- Comment #5 from Patrick Palka --- The ICE seems to be revealing a latent issue: In the following example (wh= ich GCC accepts), according to the static_assert labelled (1), the type of t is const int*, but according to the static_assert labelled (2), the type of t = is int *const. template void foo(const T t) { static_assert(__is_same(decltype(t), const int*)); // (1) } static_assert(__is_same(decltype(foo), void(int *))); // (2) int main() { foo(nullptr); }=