From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 11EBB3858D33; Sun, 20 Nov 2022 19:47:29 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 11EBB3858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668973649; bh=8Ut7F1MmHuCoZ2Hx/Gu+TsW+ZtE56W++Yo4i//q2d2Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MSn26CCQXXe0ziJYtFToOtxntSyU3szANmcg4KqgVH/OYumYlgZKPYkbWztVXMrR4 LfIN9/jWpRJoJbgEF7Pvi2E9+fvwPS28OUIp5obB8dtyJnuXcLZRm89GgYKufhGqrR lllNX8cz7JJIN7/eHvCv4sL3DkcWF1WRHVHlTJRA= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107773] Class members do not hide nested types Date: Sun, 20 Nov 2022 19:47:28 +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.1.0 X-Bugzilla-Keywords: accepts-invalid, rejects-valid, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW 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: bug_status keywords cf_reconfirmed_on everconfirmed 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=3D107773 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Keywords| |accepts-invalid, | |rejects-valid, wrong-code Last reconfirmed| |2022-11-20 Ever confirmed|0 |1 --- Comment #1 from Andrew Pinski --- Confirmed, a compile time testcase: struct a { using get =3D void; }; struct b : a { int get(int i); }; template concept c =3D requires { typename T::get; }; template constexpr int f(T t) {return 0;} template constexpr int f(T t) { typename T::get t1; return 1; } static_assert(f(b{}) =3D=3D 0);=