bug in records?

Phil Nelson phil at cs.wwu.edu
Tue Dec 12 19:56:11 CET 1995


gpc-2.6.3/sparc

I believe the following program should generate an error.  (But it doesn't.)

program variant(output);

  type myrec = record 
		 case integer of
		   1 : (f1:integer);
		   2 : (f1:real)
	       end;

  begin
  end.


-- 
Phil Nelson
e-mail: phil at cs.wwu.edu
http://www.cs.wwu.edu/~phil




More information about the Gpc mailing list