[Prev][Next][Index]
Re: spurious parser warning
- Date: Tue, 11 Oct 94 10:11:07 -0600
- From: Beata Winnicka <bfatyga@slab.cica.indiana.edu>
- To: lth@blackrabbit.cs.uoregon.edu
- Subject: Re: spurious parser warning
- Cc: sage-bugs@cica.cica.indiana.edu
>pC++2dep complains:
>
> Warning on line 8 of t2.pc: illegal type combination.
>
>yet according to the ARM (5.3.3., p.59 in Ellis/Stroustrup) the type
>of the _new_ expression is definitely "pointer to A".
>
>--lars
The way in which Sage treats operator new for arrays leaves a lot to
be desired. (notice the extra () when you unparse your example:
ap = new A [(5)];)
Thanks for bringing this problem to our attention. I'll try to come
up with a better representation for "new" for arrays. However, this
is not going to be any time soon since I already have several other
things I am working on; unless this is somehow essential to what you
are doing with Sage. Let me know if this is the case and I'll see
what I can do. --Beata