From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DA5263840C25; Mon, 29 Jun 2020 19:37:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA5263840C25 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1593459420; bh=euLmjfwsrfvxauDubZDetjQIjUqbjyyb3CuUfzaK5nI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=u4s8ABeEoTWUaDoaBWoeAqH1+s46EeWqzjDglj/ENb7UzYH0/9BC+XEOD2SW/xCYJ 6b/Pu5gYetUteLKvmUrk6rjLKqf8F+44OEU3w8Pe/C3M7HnTsz0noRb3CYYlKlsJmo 1pIUGj/qbt0UY2re9OYnBjIi53zRSFnlFvDw7a2s= From: "rafael at espindo dot la" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95302] function attributed to be deprecated cannot include a typedef/using Date: Mon, 29 Jun 2020 19:37:00 +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: 10.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rafael at espindo dot la 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: cc 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, 29 Jun 2020 19:37:01 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95302 Rafael Avila de Espindola changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |rafael at espindo dot la --- Comment #2 from Rafael Avila de Espindola --- The same problem happens with a namespace alias: namespace foo { void bar(); } [[deprecated("zed")]] inline void zed() { namespace a =3D foo; a::bar(); } Produces: test.cc: In function =E2=80=98void zed()=E2=80=99: test.cc:6:8: warning: =E2=80=98void zed()=E2=80=99 is deprecated: zed [-Wdeprecated-declarations] 6 | a::bar(); | ^~~ test.cc:4:35: note: declared here 4 | [[deprecated("zed")]] inline void zed() { | ^~~ If instead of the alias foo::bar() is used directly, no warning is produced. The issue is still present on current master (346bce6fe0cf1ed5f6a7ad732d2361d77b203c87).=