retitle 170105 tcc doesn't complain about static function declaration inside block thanks
According to the C99 standard (note n°21 in part 6.2.2): "A function declaration can contain the storage-class specifier static only if it is at file scope (…)" But in your example the function b is inside a block so it hasn't file scope. Furthermore, when the storage class isn't specified, the standard says (point 5 in section 6.2.2): "If the declaration of an identifier for a function has no storage-class specifier, its linkage is determined exactly as if it were declared with the storage-class specifier extern." And when the function has external linkage tcc behaves correctly in the current version. So the problem is not tcc ignoring function declaration inside block but rather tcc not complaining about the function being static and inside a block. I'll add this warning in the next package and also send it to the upstream devs. Best regards. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org