View Issue Details

IDProjectCategoryView StatusLast Update
0034332FPCCompilerpublic2018-09-25 21:34
ReporterOndrej PokornyAssigned ToSven Barth 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Product Version3.3.1Product Buildr39744 
Target VersionFixed in Version3.3.1 
Summary0034332: Copy(S, 1) fails on ShortString: type mismatch
DescriptionCopy() with 2 arguments fails to compile with ShortString. It compiles fine with string or with 3 arguments.
Steps To Reproduceprogram Project1;

{$mode objpas}{$h+}

var
  SS: ShortString;
  S: String;
begin
  SS := Copy(SS, 1); // << project1.lpr(9,14) Error: Type mismatch
  S := Copy(S, 1); // << OK
  SS := Copy(SS, 1, 1); // << OK
end.
TagsNo tags attached.
Fixed in Revision39802
FPCOldBugId
FPCTarget
Attached Files

Activities

Sven Barth

2018-09-25 21:10

manager   ~0111015

Please test and close if okay.

Ondrej Pokorny

2018-09-25 21:34

reporter   ~0111016

Works well, thank you.

Now, when you found the place and I took a look at it, I discovered another related issue: 0034333

Issue History

Date Modified Username Field Change
2018-09-25 19:32 Ondrej Pokorny New Issue
2018-09-25 21:10 Sven Barth Fixed in Revision => 39802
2018-09-25 21:10 Sven Barth Note Added: 0111015
2018-09-25 21:10 Sven Barth Status new => resolved
2018-09-25 21:10 Sven Barth Fixed in Version => 3.3.1
2018-09-25 21:10 Sven Barth Resolution open => fixed
2018-09-25 21:10 Sven Barth Assigned To => Sven Barth
2018-09-25 21:34 Ondrej Pokorny Note Added: 0111016
2018-09-25 21:34 Ondrej Pokorny Status resolved => closed