Compiler allows asigning a pointer to an static array to a pointer to a dynamic array
Original Reporter info from Mantis: Valdas
-
Reporter name: Valdas Jankūnas
Original Reporter info from Mantis: Valdas
- Reporter name: Valdas Jankūnas
Description:
Try attached example code.
After execution in console I got:
---- TRUE 2
Runtime error 216 at $0000000000400BD5
$0000000000400BD5 INCLOCKED
$0000000000400216 DISPLAY, line 23 of project1.lpr
$0000000000400360 main, line 32 of project1.lpr
$000000000042BE00 SYSENTRY, line 129 of system.pp
$00000000004001D2
Mantis conversion info:
- Mantis ID: 33757
- Build: [2018/02/21] for x86_64
- Platform: linux 4.13.0-41-generic 64bit
- Version: 3.1.1