public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/109260] New: -fdump-ada-spec does not support C++ namespaces
@ 2023-03-23 7:22 mytbk920423 at gmail dot com
2023-03-23 20:49 ` [Bug c++/109260] " pinskia at gcc dot gnu.org
2023-03-23 20:52 ` pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: mytbk920423 at gmail dot com @ 2023-03-23 7:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109260
Bug ID: 109260
Summary: -fdump-ada-spec does not support C++ namespaces
Product: gcc
Version: 12.2.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: mytbk920423 at gmail dot com
Target Milestone: ---
For example, the following C++ code has three namespaces:
namespace test_ns
{
namespace test_ns_1
{
struct A_Record { int x, y; };
}
namespace test_ns_2
{
struct A_Record { int x, y, z; };
}
}
Using g++ -fdump-ada-spec generates the following package, which has
declaration conflicts:
package test_ns_hh is
type A_Record is record
x : aliased int; -- test_ns.hh:5
y : aliased int; -- test_ns.hh:5
end record
with Convention => C_Pass_By_Copy; -- test_ns.hh:5
type A_Record is record
x : aliased int; -- test_ns.hh:10
y : aliased int; -- test_ns.hh:10
z : aliased int; -- test_ns.hh:10
end record
with Convention => C_Pass_By_Copy; -- test_ns.hh:10
end test_ns_hh;
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/109260] -fdump-ada-spec does not support C++ namespaces
2023-03-23 7:22 [Bug c++/109260] New: -fdump-ada-spec does not support C++ namespaces mytbk920423 at gmail dot com
@ 2023-03-23 20:49 ` pinskia at gcc dot gnu.org
2023-03-23 20:52 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-23 20:49 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109260
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/onlinedocs/gnat_ugn/Generating-Bindings-for-C_002b_002b-Headers.html#Generating-Bindings-for-C_002b_002b-Headers
https://gcc.gnu.org/onlinedocs/gnat_ugn/Interfacing-to-C_002b_002b.html#Interfacing-to-C_002b_002b
I think this is all by design this way. Since it is hard to get the mangled
names and all.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c++/109260] -fdump-ada-spec does not support C++ namespaces
2023-03-23 7:22 [Bug c++/109260] New: -fdump-ada-spec does not support C++ namespaces mytbk920423 at gmail dot com
2023-03-23 20:49 ` [Bug c++/109260] " pinskia at gcc dot gnu.org
@ 2023-03-23 20:52 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-03-23 20:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109260
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
https://gcc.gnu.org/onlinedocs/gnat_ugn/Interfacing-with-C_002b_002b-at-the-Class-Level.html#Interfacing-with-C_002b_002b-at-the-Class-Level
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-23 20:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-23 7:22 [Bug c++/109260] New: -fdump-ada-spec does not support C++ namespaces mytbk920423 at gmail dot com
2023-03-23 20:49 ` [Bug c++/109260] " pinskia at gcc dot gnu.org
2023-03-23 20:52 ` 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).