Hi, On Wed, 16 Mar 2016, Steffen Nurpmeso wrote:
> So now with [mob] i face the problem that the "const" attribute > results in "unknown struct/union/enum" error when used in the way > i do, the uncommon suffix way, i.e., TYPE ATTRIBUTE PTR/REF NAME, > as in "char const *myname", rather following Stroustrup i guess, > defining the pointer to a constant type. So we have > > struct htmlflt_tag const *hf_ign_tag; > > In file included from accmacvar.c:40: > nail.h:1598: error: unknown struct/union/enum Fixed in mob. > struct htmlflt_tag; > ... > struct htmlflt_tag const *hf_ign_tag; > > And then [mob] crashes with > > tcc: x86_64-gen.c:421: load: Assertion `((ft & VT_BTYPE) == VT_INT) || ((ft > & VT_BTYPE) == VT_LLONG) || ((ft & VT_BTYPE) == VT_PTR) || ((ft & VT_BTYPE) > == VT_ENUM) || ((ft & VT_BTYPE) == VT_FUNC)' failed. > /bin/sh: line 3: 20505 Aborted (core dumped) > /home/sdaoden/usr/opt/tcc-mob/bin/tcc -Wall -Wextra -pedantic -b -g > -I/home/sdaoden/usr/include -I/usr/local/include -I/usr/include -c tty.c Can't reproduce, please provide a testcase. Ciao, Michael. _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel