This is the mail archive of the
mailing list for the GCC project.
Re: [PATCH] PR libstdc++/13045 / C++ demangler, floating values and function pointer type return type postfix fix.
Carlo Wood <email@example.com> writes:
| On Tue, Nov 25, 2003 at 10:39:25AM -0800, Nathan Myers wrote:
| > only need a representation for those literals that is compatible with
| > the linker's character set. The key is that when a floating-point
| > value is a literal, it has a textual representation seen by the
| > compiler, and that's the one we're interested in. There might be
| > some value in translating to a canonical format, so that 1e1, 10.0,
| > and .1e2 end up encoded the same, but that seems optional.
| Lets cut the knot.
| Although your proposal is counter intuitive, I believe it
| is the most logical thing to do: keep the mangling *exactly*
| as whatever was typed by the programmer.
| But well, he might also expect that typeing 1.0 and -(-1.0)
I don't think that is even allowed for use in template arguments.