public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/111524] New: Missing support for inline namespace in spellcheck
@ 2023-09-21 17:25 fdumont at gcc dot gnu.org
2023-09-21 17:28 ` [Bug c++/111524] " pinskia at gcc dot gnu.org
0 siblings, 1 reply; 2+ messages in thread
From: fdumont at gcc dot gnu.org @ 2023-09-21 17:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111524
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=c++ --enable-symvers=gnu-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 like:
/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<char>().allocate(n); // { dg-error ".allocate. is not a
member of .std.; did you mean 'allocator'\\?" }
^~~~~~~~
/home/fdumont/dev/gcc/git/gcc/testsuite/g++.dg/spellcheck-pr78656.C:5:7: note:
'allocate' declared here
void* allocate(std::size_t n)
^~~~~~~~
It's not proposing std::allocator anymore as it is in fact std::__8::allocator.
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/111524] Missing support for inline namespace in spellcheck
2023-09-21 17:25 [Bug c++/111524] New: Missing support for inline namespace in spellcheck fdumont at gcc dot gnu.org
@ 2023-09-21 17:28 ` pinskia at gcc dot gnu.org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-21 17:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111524
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-09-21
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed reduced testcase:
```
namespace t
{
inline namespace tt
{
int abc;
}
}
namespace t1
{
int xyz;
}
int f = t::ab;
int f1 = t1::xy;
```
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-21 17:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21 17:25 [Bug c++/111524] New: Missing support for inline namespace in spellcheck fdumont at gcc dot gnu.org
2023-09-21 17:28 ` [Bug c++/111524] " pinskia at gcc dot gnu.org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).