From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7EB763858C60; Thu, 8 Feb 2024 13:01:45 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7EB763858C60 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707397305; bh=AMBUzcIwMPvu+Tyeo//GiO9a+g9272rT6d1pO/Em58A=; h=From:To:Subject:Date:In-Reply-To:References:From; b=K3GvlTBHkedgohMovjomM/GHEGhCPxnWNg13TsRxqYNjFIpzSC5Ra5S20YTeqJUNp 9eKwBdCWJG4sm57UzXBSNNAmfA1+kO55buXZJjd/iG8I4kK70wcSjQOrSquRohoSOz a4sUdowK7H+BKBO5SdIlPgS0wFF1leipolliKjVU= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/113830] GCC accepts invalid code when instantiating the local class inside a function Date: Thu, 08 Feb 2024 13:01:45 +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.2.0 X-Bugzilla-Keywords: accepts-invalid X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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: bug_status cf_reconfirmed_on everconfirmed 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=3D113830 Jonathan Wakely changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2024-02-08 Ever confirmed|0 |1 --- Comment #1 from Jonathan Wakely --- (In reply to Bo Wang from comment #0) > It appears that if a template function has an internally defined local cl= ass > that uses a dependent name in its member function, it can cause the > compiler's name-binding process to get into trouble. Or GCC just doesn't check the default argument because it's not used?=