mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 05:00:07 +02:00
* avoid ie 99080501 when overloading procedures with open arrays of widechar, resolves #11543
git-svn-id: trunk@11266 -
This commit is contained in:
parent
545c6b0d64
commit
467aeb3446
1
.gitattributes
vendored
1
.gitattributes
vendored
@ -8350,6 +8350,7 @@ tests/webtbs/tw1133.pp svneol=native#text/plain
|
||||
tests/webtbs/tw11349.pp svneol=native#text/plain
|
||||
tests/webtbs/tw11354.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1152.pp svneol=native#text/plain
|
||||
tests/webtbs/tw11543.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1157.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1157b.pp svneol=native#text/plain
|
||||
tests/webtbs/tw1181.pp svneol=native#text/plain
|
||||
|
@ -462,7 +462,7 @@ implementation
|
||||
eq:=te_convert_l1
|
||||
else
|
||||
{ size of widechar array is double due the sizeof a widechar }
|
||||
if not(is_shortstring(def_to) and (def_from.size>255*sizeof(widechar))) then
|
||||
if not(is_shortstring(def_to) and (is_open_widechararray(def_from) or (def_from.size>255*sizeof(widechar)))) then
|
||||
eq:=te_convert_l3
|
||||
else
|
||||
eq:=te_convert_l2;
|
||||
|
24
tests/webtbs/tw11543.pp
Normal file
24
tests/webtbs/tw11543.pp
Normal file
@ -0,0 +1,24 @@
|
||||
unit test;
|
||||
{$ifdef fpc}{$mode objfpc}{$endif}
|
||||
|
||||
interface
|
||||
|
||||
type
|
||||
TSetOfChar = set of char;
|
||||
|
||||
ttestclass = class(tobject)
|
||||
procedure p(const a: array of WideChar); overload;
|
||||
procedure p(const a: TSetOfChar); overload;
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
procedure ttestclass.p(const a: array of WideChar);
|
||||
begin
|
||||
end;
|
||||
|
||||
procedure ttestclass.p(const a: TSetOfChar);
|
||||
begin
|
||||
end;
|
||||
|
||||
end.
|
Loading…
Reference in New Issue
Block a user