[comp.lang.modula3] Problem with recursive objects

pr@cl.cam.ac.uk (Peter Robinson) (01/23/91)

The following program:

| MODULE Main;
| 
| TYPE r = r OBJECT METHODS m () END;
| 
| BEGIN
| END Main.

causes the DEC SRC Modula-3 compiler (version 1.5, MIPS/Ultrix system)
to loop indefinitely.  If the type declaration omits the method:

| TYPE r = r OBJECT METHODS END;

then a proper error message about a recursive type declaration is given.

- Peter Robinson.