Weird internal error 200602035 with inline
Original Reporter info from Mantis: nielsAD
-
Reporter name: Niels AD
Original Reporter info from Mantis: nielsAD
- Reporter name: Niels AD
Description:
I get a weird internal error while compiling when I try to catch an error in a nested procedure. I'm not sure what's the problem, but I made a small representation of the part of the program that seems to be causing it.
Steps to reproduce:
procedure MyException(msg: string; pos: TPoint); inline;
begin
raise Exception.Create(Format('%s at %d, %d', [msg, pos.x, pos.y]));
end;
procedure test;
procedure innerTest; inline; //Comment "inline" to make it compile
begin
try
MyException('Wowzers', Point(0, 0));
except on E: Exception do
MyException(E.Message, Point(1, 2)); //Or comment this line to make it compile
end;
end;
begin
innerTest();
end;
Mantis conversion info:
- Mantis ID: 18967
- OS: Windows
- OS Build: 7
- Platform: x86 32bit
- Version: 2.4.2
- Fixed in version: 3.0.0
- Monitored by: » denpoon (Dennis Poon), » @PascalDragon (Sven Barth)