On Fri, Jun 26, 2020 at 9:12 AM Georg-Johann Lay <g...@gcc.gnu.org> wrote: > > Andrew Pinski via Gcc schrieb: > > On Wed, Jun 3, 2020 at 2:32 PM Max Ruttenberg via Gcc <gcc@gcc.gnu.org> > > wrote: > >> Hi all, > >> > >> I’ve added a named address space to our backend and I noticed that it is > >> only support in C. > >> Has anyone had experience porting this feature to C++? Is there any > >> technical reason why it’s not supported? > > > > The main issue is how it is interacts with templates and then > > mangling. There was a few other issues that have been posted about > > before every time it is raised. > > > > Thanks, > > Andrew > > > > AFAIK llvm / clang supports named address spaces in C++, so it is > obviously possible and feasible.
I suppose restricting it to interfaces with extern "C" might side-step most of the mangling and template issues. Does clang document its C++ language extension? Richard. > > Johann >