cparser icon indicating copy to clipboard operation
cparser copied to clipboard

C99 parser and frontend for libfirm

Results 39 cparser issues
Sort by recently updated
recently updated
newest added

```cpp __attribute__ ((always_inline)) void f(void) { f(); f(); } ``` This hangs cparser with `-O2`.

```cpp void f(void) __attribute__((alias("f"))); void g() { f(); } ``` This code hangs cparser.

```cpp int f; extern typeof(f) bar __attribute__((alias("f"))); ``` cparser outputs this : ``` test.c:2:12: warning: extern storage class ignored for alias variable 'bar' [-Wother] warning: the amd64 backend is experimental...

```cpp int x = 0; static int x_alias __attribute__((alias("x"))); ``` cparser outputs this : ``` cparser: ir/tr/entity.c:552: set_entity_initializer: Assertion `get_entity_kind(entity) == IR_ENTITY_NORMAL' failed. Aborted (core dumped) ```

```cpp int a[][0][0] = {1, 2}; ``` cparser outputs this : ``` cparser: ir/tr/entity.c:515: get_initializer_compound_value: Assertion `index < initializer->compound.n_initializers' failed. Aborted (core dumped) ```

```cpp struct struct_type { int member; }; void f(int x) { struct struct_type a[] = {{x}}; } ``` Results in cparser outputting this : ``` cparser: ir/opt/scalar_replace.c:242: link_all_leaf_members: Assertion `is_End(succ)'...

```cpp void f(char *p) { p[-__PTRDIFF_MAX__ - 1]; } ``` This gives this message : ``` cparser: ir/tv/tv.c:909: tarval_and: Assertion `b->mode == mode' failed. Aborted (core dumped) ```

```cpp long double f(unsigned u) { return u; } ``` This aborts with this message : ``` ir/be/amd64/amd64_transform.c:2352: libFirm panic in conv_int_to_x87: unsigned int -> x87 NIY Aborted (core dumped)...

```cpp L"\x12345600"; ``` This errors with this message : ``` cparser: ./src/adt/unicode.h:65: obstack_grow_utf8: Assertion `c < 0x200000' failed. Aborted (core dumped) ```

```cpp struct s { unsigned front; unsigned a : 8; unsigned b : 1; } __attribute__((packed)); void f(struct s x) { x.a && x.b; } ``` This code aborts with...