From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8C3493858D32; Sun, 31 Mar 2024 00:08:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8C3493858D32 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1711843726; bh=0RI3ZSnyNxzZvWHeFR4bfZpxf6frHHQ0MKxbyRP61oE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=uCzM4ahr0b8iuWbWnU1/IkdPdu/L1Ua4M0MPgwCR3I2qZLIVL/H/erSrhW13tIirp wwodHU92XHmWG1ZEYcc6+t3AmvucjYKq3LhowWMWUMxWXFLqY+vRjM1DYVwBESCKzd 9cKROtAxAEq/QPXJSjcBBHWGcF32Uj2kXEOUmv/4= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/114210] Potential bug wrt __restrict on member function decl/def Date: Sun, 31 Mar 2024 00:08:45 +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: 14.0 X-Bugzilla-Keywords: missed-optimization, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia 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=3D114210 --- Comment #1 from Andrew Pinski --- Note the class method is similar to how normal functions work: ``` void foo (int* __restrict b); void foo (int* b) { static_assert(__is_same(decltype(b), int*)); } void foo1 (int* b); void foo1 (int* __restrict b) { static_assert(__is_same(decltype(b), int*__restrict)); } ```=