tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] new compiler (0.9.26) crashes with undeclared struct


From: Hernán J . González
Subject: Re: [Tinycc-devel] new compiler (0.9.26) crashes with undeclared struct
Date: Tue, 23 Jul 2013 12:11:51 -0300

Example:

////////////////////////////////////////////

#include<stdio.h>
int main() {
    struct asdasd x;
    printf("%d\n", sizeof(x));
}

////////////////////////////////////////////

This should fail cleanly at compile, and it does in 0.9.25 ( "unknown type size")

In my version ("tcc version 0.9.26 (i386 Win32)") in Win7-64 it crashes.

I was hit by this, not by mispelling a struct but because my code was trying to use a struct from malloc.h (mallinfo) that is not declared in TCC (which is right, that's a GCC thing)

-----------------------
Hernán

reply via email to

[Prev in Thread] Current Thread [Next in Thread]