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 void f() { __builtin_trap(); } ``` cparser outputs this : ``` Verify warning: End X[54:2](f[57]): keep-alive edge only allowed on Block, PhiLoop and Call node, found Builtin T[63:9] Aborted...

```cpp void foo(void); long double a = 5; long double b = 1; long double c = 11; long double d = 17; long double e, f, g, h, i,...

```cpp int f(int n, int i) { typedef int T[n]; struct S { int a; T b[n]; }; return __builtin_offsetof(struct S, b[i]); } ``` This results in this : ```...

```cpp struct S { int i; }; void f(void) { struct S c1 = { 1 = 0' failed. Aborted (core dumped) ```

```cpp void f(void *rx, void *px, int n) { unsigned short (*p)[n] = px; while (px != rx) ++p; while (p != rx) ++p; } ``` This aborts with this...

```cpp void *f(void) { label: &&label; } ``` With trunk cparser, this results in : ``` Verify warning: Block BB[64:9](f[59]): immature block found Verify warning: Block BB[64:9](f[59]): normal block must...

Under the "tests" directory in C11parser (on GitHub: https://github.com/jhjourdan/C11parser) you will find a range of programs that exercise some of the more arcane ambiguities that many C11/C18 implementations get wrong...

my build system [RcB2](https://github.com/rofl0r/rcb2) relies on `#pragma` directives surviving the preprocessor pass, but `cparser -E` not only filters them out, it complains about them, as if it was the compiler,...

``` cparser a.c b.c c.c -o foo ./src/driver/c_driver.c:761: panic in build_firm_ir: compiling multiple files/translation units not yet supported Aborted ``` this is a major bummer for me as it does...