./trunk/gcc202/vcs_diff_compiler.patch 2025-10-22-23:35
> uname -a Linux cfarm202 6.17.0-rc5+ #1 SMP Fri Sep 12 20:37:32 UTC 2025 sparc64 GNU/Linux
diff --git a/compiler/nadd.pas b/compiler/nadd.pas
index dc5163be32..a5ef9e42eb 100644
--- a/compiler/nadd.pas
+++ b/compiler/nadd.pas
@@ -837,7 +837,9 @@ implementation
{ pointer-pointer results in an integer }
if (rt=pointerconstn) then
begin
- if not(anf_has_pointerdiv in addnodeflags) then
+ if (cs_typed_addresses in current_settings.localswitches) and
+ (tpointerdef(rd).pointeddef.size>1) and
+ not(anf_has_pointerdiv in addnodeflags) then
internalerror(2008030101);
t:=cpointerconstnode.create(qword(v),resultdef)
end