From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 952553949099; Mon, 5 Dec 2022 21:02:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 952553949099 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1670274138; bh=08Rdg032hjcNrceXs7qmIlcfXawYx5vQxAst5UTdUlU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=g5VnCwsArF7h1mgINLZK5GK6aGhPclfobZcWMkAFA9zsfnntr8ma5F+1di1rVnXez lckaOKCKR20qad0vocjSzIH2xad88ceRsOKJESvu2tkCt1cgBhDGk2e+V/r6Fctf0u AbD62P8nkwcePELFZjEvSnAQuCX3qCF3I4W99HLA= From: "egor.pugin at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107981] 'operator auto' has not been declared in base Date: Mon, 05 Dec 2022 21:02: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: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: egor.pugin at gmail dot com 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=3D107981 --- Comment #1 from Egor Pugin --- Also see following test cases. =3D=3D=3D ok for gcc struct a { operator auto(); }; struct b : a { using a::operator auto; }; =3D=3D=3D not ok for gcc&clang, ok for msvc struct a { operator auto(); }; struct b : a { using a::operator auto; }; int main(){b v;int x =3D v;} =3D=3D=3D=