From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 8E2C63857036; Wed, 5 Jul 2023 23:13:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 8E2C63857036 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1688598834; bh=wwEUTpugRdq73UYnzgAmpI/7QNiUGoF8u54+xUfQJEU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=KYPR7r+75PF1yLZJTHXxe+1jvZnx6BsQlVYYxNbuhHp4w7o3TPmoug/TwfGCPFll7 OaQ81K4Zn8YcsroavUZpNafXDR1uHJU5Ebe2/l2d0eUeSNEiFt5KGz1ZwxseXrlKn+ cV0BkI9smuW8O68JlRN4+ZLra99pHzxV50KgKMu8= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/110565] [10/11/12/13/14 Regression] Incomplete note on why initializing int& with int is ill-formed Date: Wed, 05 Jul 2023 23:13:54 +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: unknown X-Bugzilla-Keywords: diagnostic 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: short_desc everconfirmed cf_known_to_fail bug_status cf_reconfirmed_on cf_known_to_work 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 Andrew Pinski changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Incomplete note on why |[10/11/12/13/14 Regression] |initializing int& with int |Incomplete note on why |is ill-formed |initializing int& with int | |is ill-formed Ever confirmed|0 |1 Known to fail| |5.1.0 Status|UNCONFIRMED |NEW Last reconfirmed| |2023-07-05 Known to work| |4.9.4 --- Comment #1 from Andrew Pinski --- GCC 4.9 and before gave a slightly better error message: : In function 'void f()': :8:12: error: no matching function for call to 'X::X(int)' new X(0); ^ :8:12: note: candidate is: :2:5: note: X::X(int&) X(int&); ^ :2:5: note: no known conversion for argument 1 from 'int' to 'int= &'=