From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 25D743858CDA; Fri, 23 Sep 2022 22:16:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 25D743858CDA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1663971388; bh=5QWaVKDjJ54M+48OfXWrXkOV68P98bHGkXyyMNg79IQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=PB1Z90Ohp92Y6G3ovibg6RsTKHJ7c6HluW4lKzYn/NWZH/rOX63kuP0h+gKDBYxXd QDY7TsjMMBTwuad6Or4ZkQtTE2wEUKfk3jdqgkSlsimfok7iPYSG4olyHjyF1edGog QhZiZhEuUjkphJ8oRocQx16KucMXC0qiDBbFT3qE= From: "piersh at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107022] error: use of deleted function 'std::unordered_map Date: Fri, 23 Sep 2022 22:16: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: 11.2.1 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: piersh at hotmail 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=3D107022 --- Comment #4 from piersh at hotmail dot com --- is it related to nested classes? this reproduces the issue: uncomment line = 9 to repro: #include #include struct key {}; struct my_hash { my_hash() {} //my_hash(int i =3D 42) {} // <<-- uncomment for bug std::size_t operator()(const key &ep) const { return 0; } }; struct foo { foo(); private: std::unordered_map things_; }; foo::foo() {}=