Actions

icon Post
text/html Subscribe
text/html Unsubscribe

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cxx-abi-dev] Request for clarification: floating point literal mangling


  • To: kerch@xxxxxxxxxx
  • Subject: Re: [cxx-abi-dev] Request for clarification: floating point literal mangling
  • From: Mark Mitchell <mark@xxxxxxxxxxxxxxxx>
  • Date: 09 Jun 2003 18:01:41 -0700

On Mon, 2003-06-09 at 17:30, Kerch Holt wrote:
> Zack Weinberg wrote:
> > Dennis Handly <dhandly@xxxxxxxxxx> writes:
> > 
> > 
> >>>HP?
> >>
> >>Mark Mitchell
> >>
> >>We currently don't allow it.
> >>How does EDG and g++ allow it, as a floating point literal?
> >>Or in some expression?
> > 
> > 
> > template <int I> class A {};
> > template <int I> void f(A<I+int(1.234)>) {}
> > 
> Several compilers (including aCC) take the "int(1.234)"
> part and simply converted to "1" in the resulting signature.

That, however, is clearly disallowed by the ABI.  (In the same way that
transforming "1 + 2" into "3" is not allowed.)

The mangling scheme is designed to be (essentially) a representation of
the input token stream.

-- 
Mark Mitchell
CodeSourcery, LLC
mark@xxxxxxxxxxxxxxxx