From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D8D773893666; Wed, 22 Jul 2020 14:05:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D8D773893666 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1595426704; bh=UaB+yLxT/Xrgfhb+RSpoacSqqNQww/BgIeCT50tDV6c=; h=From:To:Subject:Date:In-Reply-To:References:From; b=AMvBSqpuvh84MISmKR44DzZQrDQVcTma1+TwrtRQD7dZHjof2AFsdB/1phloStjrB uDBlDAVrczzalAL4zuRYHIFgrTvK8NsZniIS4G1y9GeNh4No8uZ1uolBSeXHxUz5mM jLSz2TJ5ZFr+USG03w5vKXmtrmLMqzcknZfI4LGc= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/95596] string literal wrong overload resolution (char* vs std::string) Date: Wed, 22 Jul 2020 14:05:04 +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.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: 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: Wed, 22 Jul 2020 14:05:05 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95596 --- Comment #5 from Jonathan Wakely --- Another one that G++ rejects: void f(char*); int &f(...); int &r =3D f("foo");=