[Prev][Next][Index]
spurious parser warning
- To: sage-bugs@cica.cica.indiana.edu
- Cc: lth@blackrabbit.cs.uoregon.edu
- Subject: spurious parser warning
- Date: Mon, 10 Oct 94 12:14:53 -0700
- From: lth@blackrabbit.cs.uoregon.edu
Given the following code:
class A {
int a;
};
void foo()
{
A *ap;
ap = new A[ 5 ];
}
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