From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 722233858C52; Thu, 21 Sep 2023 17:25:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 722233858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695317102; bh=g4HQbf2FLYx8fi65nJKX7XI3qW+rYgKJi+lChjfU+Nc=; h=From:To:Subject:Date:From; b=wxxuMwFXRG3XLzs67TvSzsdxMt5qvQI7FNKsg3XulBhiC8YhWtG033k5ua+UfMNQa eC9g/p7yqug6KewLMRxpTXpHv0MkgKIB7qLt4Uz1GHIn/HKnUzOXFcZBeeQTKHseYw PrEheKmcv/JxaK5N1s/deNN6BRuIkDwnV5znSubo= From: "fdumont at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c++/111524] New: Missing support for inline namespace in spellcheck Date: Thu, 21 Sep 2023 17:25:02 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c++ X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: minor X-Bugzilla-Who: fdumont 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: 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=3D111524 Bug ID: 111524 Summary: Missing support for inline namespace in spellcheck Product: gcc Version: unknown Status: UNCONFIRMED Severity: minor Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: fdumont at gcc dot gnu.org Target Milestone: --- When spellcheck is trying to find out what mistake the dev made inline namespace are not considered. To reproduce you just need to build g++/libstdc++ with: --enable-languages=3Dc++ --enable-symvers=3Dgnu-versioned-namespace so that you have the std::__8:: inline namespace for mostly all libstdc++ symbols. Then running 'make check-c++' several spellcheck tests will start to fail l= ike: /home/fdumont/dev/gcc/git/gcc/testsuite/g++.dg/spellcheck-pr78656.C: In function 'void* allocate(std::size_t)': /home/fdumont/dev/gcc/git/gcc/testsuite/g++.dg/spellcheck-pr78656.C:7:15: error: 'allocate' is not a member of 'std'; did you mean 'allocate'? return std::allocate().allocate(n); // { dg-error ".allocate. is n= ot a member of .std.; did you mean 'allocator'\\?" } ^~~~~~~~ /home/fdumont/dev/gcc/git/gcc/testsuite/g++.dg/spellcheck-pr78656.C:5:7: no= te: 'allocate' declared here void* allocate(std::size_t n) ^~~~~~~~ It's not proposing std::allocator anymore as it is in fact std::__8::alloca= tor.=