Zeex/crashdetect — Issue #6: Fixed version of pawncc fails to compile
Author: leong124
Created: 2011-12-15 15:21:30+00:00
State: open

The fixed version of the pawncc cannot compile my script successfully.
Test code: http://pastebin.com/SWygmu6V
When the script is compiled by the original version:

D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\test6.pwn(9) : warning 203: symbol is never used: "string"
Pawn compiler 3.2.3664	Copyright (c) 1997-2006, ITB CompuPhase

It works fine.
However, when it is compiled by the fixed version:

D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\core.inc(30) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\core.inc(31) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\float.inc(36) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\string.inc(12) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\string.inc(18) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\string.inc(19) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\string.inc(22) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\string.inc(24) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\string.inc(26) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\file.inc(34) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\file.inc(35) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\a_samp.inc(53) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\a_samp.inc(61) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\a_samp.inc(62) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\a_samp.inc(76) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\pawno\include\a_samp.inc(151) : warning 219: local variable "string" shadows a variable at a preceding level
D:\Program Files\Rockstar Games\GTA San Andreas\filterscripts\test6.pwn(9) : warning 203: symbol is never used: "string"
Pawn compiler 3.0.3367	Copyright (c) 1997-2005, ITB CompuPhase

It is mixing up with the parameters in native functions.