If enumeration type contains values which are not in order, no type info is generated for it.
Original Reporter info from Mantis: Cyrax
-
Reporter name:
Original Reporter info from Mantis: Cyrax
- Reporter name:
Description:
Like summary says, compiler won't generate type info for such enumeration types. But if user declares another type, for example dynamic array which contains such enumeration type, then user can extract type info for it.
See summary, Additional Information and attached test project for more info.
---
Hint: (11030) Start of reading config file F:\free_pascal_and_lazarus\fpc\i386\trunk\binary\fpc_trunk\bin\i386-win32\fpc.cfg
Hint: (11031) End of reading config file F:\free_pascal_and_lazarus\fpc\i386\trunk\binary\fpc_trunk\bin\i386-win32\fpc.cfg
Free Pascal Compiler version 3.1.1-r30132 [2015/03/08] for i386
Copyright (c) 1993-2015 by Florian Klaempfl and others
(1002) Target OS: Win32 for i386
(3104) Compiling project1.lpr
U:\32-bit\kielet\pascal\free_pascal\lazarus\projects\research\source 13\fpc typeinfo bug test 00\project1.lpr(9,59) Note: (3031) Values in enumeration types have to be ascending
U:\32-bit\kielet\pascal\free_pascal\lazarus\projects\research\source 13\fpc typeinfo bug test 00\project1.lpr(19,16) Error: (4087) No type info available for this type
project1.lpr(27) Fatal: (10026) There were 1 errors compiling module, stopping
Fatal: (1018) Compilation aborted
Error: F:\free_pascal_and_lazarus\fpc\i386\trunk\binary\fpc_trunk\bin\i386-win32\ppc386.exe returned an error exitcode
Steps to reproduce:
- Remove comment from line 19 in attached project.
- Compile.
Additional information:
Lazarus revision 48165
FPC revision 30132
FPC make commands:
clean
all
install
OPT=-gw2 -godwarfsets -gl -O- -OoNO -Xs- -Si- -vb -XX -CX -dTEST_WIN32_SEH
COMPILER_OPTIONS=-gw2 -godwarfsets -gl -O- -OoNO -Xs- -Si- -vb -XX -CX -dTEST_WIN32_SEH
INSTALL_PREFIX=F:\free_pascal_and_lazarus\fpc\i386\trunk\binary\fpc_trunk
UPXPROG=echo
IDE=1
REVSTR=30132
Lazarus make commands:
clean
all
OPT=-gw2 -godwarfsets -gl -gh -O- -OoNO -Xs- -Si- -vb -XX -CX -dTEST_WIN32_SEH -dHEAPTRC_WINDOW -dDBG_WITH_DEBUGGER_DEBUG
UPXPROG=echo
USESVN2REVISIONINC=0
---
Attached project is built with these options:
-MObjFPC -Scghi -gw2 -godwarfsets -gl -l -vewnhibq -Filib\i386-win32 -Fu. -FUlib\i386-win32 -FEbin\i386-win32-win32\
Mantis conversion info:
- Mantis ID: 27622
- OS: Server 2008 R2
- OS Build: 6.1.7601 (SP1)
- Build: r30132
- Platform: Windows
- Version: 3.1.1
- Monitored by: » @martok (Martok), » Vincent (Vincent Snijders), » AntonK (Anton Kavalenka)