From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5E42A3854171; Fri, 21 Oct 2022 15:08:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5E42A3854171 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1666364887; bh=RxdGhssffxh01RxluV6Sv8RySHl/4eUO9mWJ/+WA1q8=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QpV/s4IWLajL0gHCdeYuAUFtWzwxkCWrYrFHp/Va34lg5c5TmyaXXRJu562NkSgNW twYcOw7+Jlob7Kjv9L1jPghkhoh+k1XKezvCydP2hsZzzClWuhWt3KoFUrYG+77HMC 3HKFcoAruWqXzX2WqhpfGtJk/fVVMvKNB73FnW1k= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/107022] error: use of deleted function 'std::unordered_map Date: Fri, 21 Oct 2022 15:08:07 +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: 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=3D107022 --- Comment #9 from Jonathan Wakely --- For the example in comment 0 the default-initializer for things_{} is the problem, removing the {} allows it to compile. For the example in Bug 107340 the problem is the default-initializer x =3D = 0 in the nested class, removing that allows it to compile. The nested class is complete at the closing } but its complete class contex= ts are not complete until the enclosing class is complete. default-initializers and nested classes do not work well.=