IDE Allows naming TLabel component name as "label" and crashes
Steps to reproduce:
- Go to Tools -> Options -> Environment -> Form Editor
- Check the box "Ask name on create"
Now close the IDE options window.
- Select a TLabel and paste in a Form.
- Leave the new name as "Label" on the "choose name and text" dialog.
Sometimes you may be greeted with a warning, as "label" is a pascal keyword, Pressing cancel crashes the IDE immediately while pressing OK will crashes the IDE on compilation.
Lazarus IDE: 2.0.12 (compiled with fpcupdeluxe) on Windows 10
Edited by Abdullahi Usman