View Issue Details

IDProjectCategoryView StatusLast Update
0031125FPCDocumentationpublic2016-12-16 19:04
ReporterdelfionAssigned ToMichael Van Canneyt 
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version3.1.1Product Build 
Target Version3.2.0Fixed in Version3.1.1 
Summary0031125: Case boolean of
DescriptionDocumentation says :"The constants appearing in the various case parts must be known at compile-time, and can be of the following types : enumeration types, Ordinal types (except boolean), and chars or string types."
http://www.freepascal.org/docs-html/ref/refsu57.html

But this is valid code:
var a:boolean;
b:integer;
begin

case a of
true:b:=2;
false:b:=1;
end;
end.
TagsNo tags attached.
Fixed in Revision1377
FPCOldBugId
FPCTarget
Attached Files

Activities

Anton

2016-12-16 18:57

reporter   ~0096832

"Char" is ordinal type

Michael Van Canneyt

2016-12-16 19:04

administrator   ~0096833

Fixed, thanks for the correction(s).

Issue History

Date Modified Username Field Change
2016-12-16 08:14 delfion New Issue
2016-12-16 08:14 delfion Status new => assigned
2016-12-16 08:14 delfion Assigned To => Michael Van Canneyt
2016-12-16 18:57 Anton Note Added: 0096832
2016-12-16 19:04 Michael Van Canneyt Fixed in Revision => 1377
2016-12-16 19:04 Michael Van Canneyt Note Added: 0096833
2016-12-16 19:04 Michael Van Canneyt Status assigned => resolved
2016-12-16 19:04 Michael Van Canneyt Fixed in Version => 3.1.1
2016-12-16 19:04 Michael Van Canneyt Resolution open => fixed
2016-12-16 19:04 Michael Van Canneyt Target Version => 3.2.0