[Prev][Next][Index]

spurious parser warning




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