string concatenation doesn't work with function call and brackets
Original Reporter info from Mantis: BeniBela @benibela
-
Reporter name: Benito van der Zander
Original Reporter info from Mantis: BeniBela @benibela
- Reporter name: Benito van der Zander
Description:
This program doesn't compile:
program test;
{$mode objfpc}{$H+}
uses sysutils;
var s: String;
begin
s := IntToStr(0) + ' '+(IntToStr(0) +' '+(IntToStr(0) +' '));
writeln(s);
end.
with error log:
Hint: Start of reading config file /etc/fpc.cfg
Hint: End of reading config file /etc/fpc.cfg
Free Pascal Compiler version 2.4.0-2 [2010/02/20] for x86_64
Copyright (c) 1993-2009 by Florian Klaempfl
Target OS: Linux for x86-64
Compiling test.lpr
test.lpr(9,26) Fatal: Internal error 200109302
Mantis conversion info:
- Mantis ID: 17535
- OS: Debian
- OS Build: squeeze
- Build: 2.4.0-2
- Platform: amd64
- Version: 2.4.0