[PATCH] PR libstdc++/13045 / C++ demangler, floating values and function pointer type return type postfix fix.

Gabriel Dos Reis gdr@integrable-solutions.net
Tue Nov 25 23:18:00 GMT 2003


Carlo Wood <carlo@alinoe.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.

*Normalize*.

[...]

| 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.

-- Gaby



More information about the Libstdc++ mailing list