Hi Frank
Trying to compile some object oriented code that compiles without problem under all previous versions of GPC (and Delphi, FreePascal and Virtual Pascal) produces this result:
"d:/src/gcc-3.2.2/gcc/p/objects.c:438:finish_object_type: failed assertion `method' cdialogs.pas:381: Internal compiler error. Please submit a full bug report to the GPC mailing list gpc@gnu.de. See URL:http://www.gnu-pascal.de/todo.html for details. gpc1.exe: gpc exited with status 1 gpc1.exe: gpc exited with status 1"
It is impossible to reduce the code that caused this to a small program - but this is the relevant part of "cdialogs.pas": TYPE pMemo = ^TMemo; MemoStrings = ^TMemoStrings; TMemoStrings = OBJECT ( TStrings ) Memo : pMemo; CONSTRUCTOR Create ( Owner : pMemo ); DESTRUCTOR Done; VIRTUAL; FUNCTION LoadFromFile ( CONST FName : String ) : Longint; VIRTUAL; END; { <--- this is line 381 }
TMemo = OBJECT ( TEdit ) Buffer : pChar; BufferHandle : hGlobal; .... ....
There is no reason that I can see why this code should cause the compiler to crash - but perhaps something has changed in the OOP handling parts of the compiler ...
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.bigfoot.com/~african_chief/