[comp.lang.c++] Another C++ problem, solved

wim@targon.UUCP (Wim C. J. van Eerdt) (12/08/87)

I did get yet another file from my colleague Gerard.
As in other articles stated send he is not reachable by e-mail.
I shall forward your mail!
Success and have fun!

		Wim
--------Fix---------------------------------------------------------
Author: Gerard van Dorth
Subject:  Another C++ problem, solved (?)

> Yet another crazy C++ problem
> ...
> The below code is a generalization of a problem we are seeing with C++
> ...

Substitute the line
		Pfct f = Pfct(Pptr(q->tp)->typ);
in routine call::simpl of the file simpl.c by
		Ptype pt = q->tp;
		while (pt->base == TYPE) pt = Pbase(pt)->b_name->tp;
		Pfct f = Pfct(Pptr(pt)->typ);	// for basic type only.

(Simpl(e) turns out to be hard).
-- 
	Wim van Eerdt                   E-mail: mcvax!targon!wim
	OSP, Nixdorf Computer Bv, Postbus 29, 4130 EA Vianen
	Nederland. Tel.: +31 3473 62211.