public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/91464] C++ extern "C" namespace A {int value;}; is definition not declaration
[not found] <bug-91464-4@http.gcc.gnu.org/bugzilla/>
@ 2024-09-19 6:25 ` pinskia at gcc dot gnu.org
2024-09-19 7:52 ` jakub at gcc dot gnu.org
2024-09-19 7:58 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-09-19 6:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91464
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |15.0
Keywords| |needs-bisection
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Looks like this was fixed on the trunk.
That is:
```
extern "C" namespace A
{
int value;
}
int getValue ()
{
return A::value;
}
int main()
{
return getValue();
}
```
Works as expected.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/91464] C++ extern "C" namespace A {int value;}; is definition not declaration
[not found] <bug-91464-4@http.gcc.gnu.org/bugzilla/>
2024-09-19 6:25 ` [Bug c++/91464] C++ extern "C" namespace A {int value;}; is definition not declaration pinskia at gcc dot gnu.org
@ 2024-09-19 7:52 ` jakub at gcc dot gnu.org
2024-09-19 7:58 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: jakub at gcc dot gnu.org @ 2024-09-19 7:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91464
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords|needs-bisection |
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
r15-114-g7317d62a1200dbd3685015e5d6b811497a27fe5f
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/91464] C++ extern "C" namespace A {int value;}; is definition not declaration
[not found] <bug-91464-4@http.gcc.gnu.org/bugzilla/>
2024-09-19 6:25 ` [Bug c++/91464] C++ extern "C" namespace A {int value;}; is definition not declaration pinskia at gcc dot gnu.org
2024-09-19 7:52 ` jakub at gcc dot gnu.org
@ 2024-09-19 7:58 ` pinskia at gcc dot gnu.org
2 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-09-19 7:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91464
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |needs-testcase
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
g++.dg/parse/linkage4.C is closely related. But that change is definitely the
fix for this issue too.
So we should just add a testcase then.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-09-19 7:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-91464-4@http.gcc.gnu.org/bugzilla/>
2024-09-19 6:25 ` [Bug c++/91464] C++ extern "C" namespace A {int value;}; is definition not declaration pinskia at gcc dot gnu.org
2024-09-19 7:52 ` jakub at gcc dot gnu.org
2024-09-19 7:58 ` 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).