Stanislav Gromov

Results 37 issues of Stanislav Gromov

### Issue description: The following code compiles correctly: ```Pawn forward public Func(); ``` But when specifying a tag for the return value, it won't compile ```Pawn forward public Tag:Func(); //...

state: stale

### Issue description: Usually the compiler warns about infinite loops through warning 206: ```Pawn while (true) {} // warning 206: redundant test: constant expression is non-zero ``` But apparently when...

state: stale

### Issue description: The following code: ```Pawn #if defined main Func() { new a[4]; new x = 0; a = x ? "ab" : "xyz"; return a[0]; } #else Func(){}...

state: stale

### Issue description: ```Pawn #include public Func(); Func() { printf("Func()"); } main() { printf("main()"); CallLocalFunction("Func", ""); } ``` This code makes function `main()` call itself recursively, causing a stack/heap collision....

state: stale

### Issue description: The compiler allows to use a combination of `static` and `stock` class specifiers in function definitions and old-style declarations, but doesn't allow it in new-style declarations. ###...

state: stale

### Issue description: Using the `static` specifier in a new-style function declaration, but omitting it in the definition ```Pawn // file1.inc forward static Func(); Func(){} ``` results in `static` having...

state: stale

### Issue description: Compiling the following code: ```Pawn static @var = 0; ``` causes an assertion failure when the compiler is built with assertions enabled: ``` Assertion failed: !fstatic, file...

state: stale

### Issue description: The compiler issues error 042 (`invalid combination of class specifiers`) when specifier `stock` is used when defining a function whose name starts with `@` (because such names...

state: stale

### Issue description: Currently we have only 5 free error IDs left (95-99), which might be not enough when implementing new features such as #234, #608 and #609, so we...

state: stale

### Issue description: The compiler doesn't detect variables as unused if they're read/written from an unused function. ```Pawn new some_var; stock GetVar() return some_var; main(){} ``` I think we should...

type: enhancement
state: stale
area: parser