This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/29773] name mangling for nested functions is wrong
- From: "geoffk at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 9 Nov 2006 21:49:10 -0000
- Subject: [Bug c++/29773] name mangling for nested functions is wrong
- References: <bug-29773-638@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from geoffk at gcc dot gnu dot org 2006-11-09 21:49 -------
There is a contradiction here in the ABI. The formal syntax in the ABI says
that a <local-name> cannot appear inside a <nested-name>, but the example I
mentioned is trying to show that it does. However, the formal syntax in the
ABI also says that a <local-name> does not end with a type specification, and
if that was true, you couldn't use it for a nested function, because you need
to include their argument types to allow overloading. Possibly this is just
bug(s) in the ABI, and GCC is doing the right thing.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29773