From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 34456385840E; Mon, 30 Oct 2023 14:11:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 34456385840E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698675093; bh=/Crf7sX9hdu3EyyEqvn7aVnab+aQksZ/BCHio0+firk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=dRnhRht0UV0jft0mqyZhhUdIJ3e/ubNu/AMi8prHKTGZTQHIREjnisEeQ5Gn8A1I1 ScQbl3mYyQ3seFd+R0JVvInWy0cIXizBvL8wT6F2OnOC2avkDdiyRq167mbQwcpUOI OqWh4uPWOdShLTb2RntBJEWr8V9zfnPEOel3lT5k= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/112293] Enhance error reporting with fix-it for missing in gcc 14 Date: Mon, 30 Oct 2023 14:11:32 +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: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org 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=3D112293 --- Comment #2 from Jonathan Wakely --- (In reply to Jonathan Wakely from comment #1) > This is broken in two ways, you need to include both *and* > for this program. Actually three ways. There is no guarantee that std::vector's iterators have namespace std as an associated namespace, so begin(v) and end(v) are not guaranteed to find std::begin and std::end. You should qualify them or add using declarations.=