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: norn
Subject: Re: [Tinycc-devel] new compiler (0.9.26) crashes with undeclared struct
Date: Wed, 24 Jul 2013 21:20:47 +0600
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7

24.07.2013 21:08, grischka пишет:
Hernán J. González wrote:
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.

Should work now:
http://repo.or.cz/w/tinycc.git/commitdiff/69c2e7f96c95ba088657ce8bb9754c12c3e89397

Thanks,

--- grischka


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


------------------------------------------------------------------------

_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


_______________________________________________
Tinycc-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
Hi!

I think a structure can not be empty. Try to declare something at her. Sorry my english.



reply via email to

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