tinycc-devel
[Top][All Lists]
Advanced

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

[Tinycc-devel] variable lenght array parameter declaration bug


From: arnold
Subject: [Tinycc-devel] variable lenght array parameter declaration bug
Date: Thu, 02 Sep 2021 01:53:41 -0600
User-agent: Heirloom mailx 12.5 7/5/10

Hi All.

Latest mob (and earlier) don't handle declaration of a variable length
array parameter when the length is specified by an earlier parameter. Here
is a test file:

-------------------
#include <stdlib.h>

typedef struct { int x, y; } regex_t;
typedef struct { int x, y; } regmatch_t;

extern int regexec (const regex_t *__preg,
                    const char *__String, size_t __nmatch,
                    regmatch_t __pmatch[__nmatch],
                    int __eflags);
-------------------

This goes through GCC, pcc, and clang with no problems.  Can someone
fix this?  After recent changes in GNULIB, I can no longer compile
gawk with tcc because of this issue.

Thanks!

Arnold



reply via email to

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