[Bug c++/88413] New: g++ mangles names involving unresolved names in function argument template parameters differently from the ABI standard.

2018-12-07 Thread brennan at umanwizard dot com
Version: 8.2.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: brennan at umanwizard dot com Target Milestone: --- Created attachment 45189 --> https://gcc.gnu.

[Bug c++/88413] g++ mangles names involving unresolved names in function argument template parameters differently from the ABI standard.

2018-12-07 Thread brennan at umanwizard dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88413 --- Comment #2 from brennan at umanwizard dot com --- I find the opposite, on whatever ancient version of c++filt ships with macOS: $ c++filt --version GNU c++filt 070207 20070207 Copyright 2005 Free Software Foundation, Inc. This program is

[Bug c++/88413] g++ mangles names involving unresolved names in function argument template parameters differently from the ABI standard.

2018-12-07 Thread brennan at umanwizard dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88413 --- Comment #4 from brennan at umanwizard dot com --- Investigating a bit more, it seems Apple patched their c++filt to just call into __cxa_demangle in their own libc++abi , so it makes sense that c++filt on macOS matches clang and on Linux

[Bug c++/88413] g++ mangles names involving unresolved names in function argument template parameters differently from the ABI standard.

2018-12-10 Thread brennan at umanwizard dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88413 --- Comment #8 from brennan at umanwizard dot com --- Yes that is the literal srN string and in fact GCC does output that sometimes, for example on the following program which made it a lot clearer to me what is going on. template struct S1

[Bug c++/88413] g++ mangles names involving unresolved names in function argument template parameters differently from the ABI standard.

2018-12-10 Thread brennan at umanwizard dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88413 --- Comment #9 from brennan at umanwizard dot com --- There is an open issue from Oct. 2017 on the ABI standard's official website (which is a Github repo): https://github.com/itanium-cxx-abi/cxx-abi/issues/38 It appears to be the exact