libfirm / cparser

C99 parser and frontend for libfirm
http://pp.ipd.kit.edu/firm
GNU General Public License v2.0
336 stars 38 forks source link

cparser aborts on passing non-lvalue to asm #43

Open GabrielRavier opened 4 years ago

GabrielRavier commented 4 years ago
void f(int i)
{
    asm("" : : "m"(++i));
}

cparser outputs this :

src/firm/ast2firm.c:2344: panic in expression_to_addr: trying to get address of non-lvalue
Aborted (core dumped)

Obviously there is still a error in this code, but a panic like this kind of lacks information