From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DA9503858C55; Mon, 11 Mar 2024 14:27:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DA9503858C55 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1710167247; bh=+HY6q1a57rfDy4K7wDPBNzc8FJr3phHGBvSgbPl2g8s=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HQtkz01xusYtUK77l0SrW98cIQ6yJutlFkmy+C/iyeL4oYBFuvwNqYGDRC/f6ChGG jN//YJjUj19YIYaZ4uZwVrngifvwdq858tRIaI1aRBbnVIW+Y6teeVoz/z5eE2qjR2 79G33PU/Y2/H7qsrbtaFeyCrz7BZpydqSjsF33k8= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110565] [11/12/13/14 Regression] Incomplete note on why initializing int& with int is ill-formed Date: Mon, 11 Mar 2024 14:27:27 +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: 13.1.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.5 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110565 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jason at gcc dot gnu.org --- Comment #3 from Jonathan Wakely --- The diagnostic was changed by r5-601-gd02f620dc0bb3b Author: Jason Merrill Date: Wed May 14 17:48:07 2014 re PR c++/20332 (poor diagnostic when bind non lvalue to a reference for default arguments) PR c++/20332 PR c++/21631 * call.c (reference_binding): Treat lvalue/rvalue mismatch and dropped cv-quals as a bad conversion. (convert_like_real) [ck_ref_bind]: Explain them. (compare_ics): Check badness before stripping reference bindings. Handle comparing bad reference bindings. * typeck.c (comp_cv_qualification): Add overload that just takes integers. * cp-tree.h: Declare it.=