andrewchambers

Results 236 issues of andrewchambers

Following code aborts with 8cc at runtime, works with gcc 4.9.2 and tcc 0.9.26. ``` void abort(void); void exit(int status); struct { unsigned x2 : 2; unsigned x3 : 3;...

``` struct T; struct T { int x; }; int main() { struct T v; { struct T { int z; }; } v.x = 2; if(v.x != 2) return...

``` int x; int x = 0; int x; int main() { x = 0; return x; } ```

The stub type does not pass the basetype to the nested declarator in the case that there are nested parens and no tail, this patch fixes that.

Certain classes of structs should be passed in registers, currently they are not.

From standard: 6.5.16.2 Compound assignment ``` A compound assignment of the form E1 op= E2 is equivalent to the simple assignment expression E1 = E1 op (E2) , except that...

An issue in regards to constant initializers like: ``` int x; int y; int * a = &y + 1; int * b = 1 - &y + 1; int...

Compiles and executes with gcc and tcc, aborts at runtime on 8cc. if you remove the function call, then there is no error, probably error in float argument handling. ```...

It would be nice if the test suite had a place for self contained bug files which have no output and return zero or nonzero for pass or failure respectively....

Following code aborts with 8cc at runtime, works with gcc 4.9.2 and tcc 0.9.26. ``` void abort(void); int a[] = L"foo"; int b = 0; int main() { if (a[2]...