View Issue Details

IDProjectCategoryView StatusLast Update
0009922FPCCompilerpublic2009-10-25 10:07
ReporterPetr-KAssigned To 
PrioritynormalSeverityfeatureReproducibilityalways
Status acknowledgedResolutionopen 
Product Version2.3.1Product Build 
Target VersionFixed in Version 
Summary0009922: Cannot create WideChar set
Description[WideChar] create [char] set

program wch;

const
  N: WideChar = #0;
var
  p: PWideChar;
  w: WideChar;
begin
  p := @w;
  if p^ in [N] then //Error: Incompatible types: got "WideChar" expected "Char"
    writeln;
end.
TagsNo tags attached.
Fixed in Revision
FPCOldBugId0
FPCTarget-
Attached Files

Relationships

related to 0007758 closedJonas Maebe char to wchar conversion and etc. 
has duplicate 0016656 resolvedJonas Maebe WideChar not accepted in set 

Activities

Jonas Maebe

2007-10-12 10:29

manager   ~0015361

At this time the compiler does not support sets with elements whose cardinality can be > 255. This is Delphi-compatible. Such support may however be added in the future.

Marco van de Voort

2009-10-25 10:07

manager   ~0031652

(Note that Delphi didn't add sets for widechar when they went unicode)

Issue History

Date Modified Username Field Change
2007-10-12 10:23 Petr-K New Issue
2007-10-12 10:29 Jonas Maebe FPCOldBugId => 0
2007-10-12 10:29 Jonas Maebe FPCTarget => -
2007-10-12 10:29 Jonas Maebe Note Added: 0015361
2007-10-12 10:29 Jonas Maebe Severity minor => feature
2007-10-12 10:30 Jonas Maebe Relationship added related to 0007758
2007-10-16 21:32 Peter Vreman Status new => acknowledged
2009-10-25 10:07 Marco van de Voort Note Added: 0031652
2014-04-27 18:54 Jonas Maebe Relationship added has duplicate 0016656