|
From: | Pascal Cuoq |
Subject: | Re: [Tinycc-devel] TCC crash with incorrect syntax in compound literal |
Date: | Sun, 17 Mar 2019 15:03:59 +0000 |
Hello again,
The attached patch makes the program above rejected without crash, does not seem to break “make test” (I think I know what it looks like when the tests are broken because my first fix did break them), and it makes the following program accepted
too (and compiled to a binary that behaves as intended):
#include <stdio.h>
int main(void) {
printf("%zu %s\n", sizeof (char[]){'a', 0,}, (char[]){'a', 0,});
}
It might be close to the right fix.
Pascal
|
comma_comma.patch
Description: comma_comma.patch
[Prev in Thread] | Current Thread | [Next in Thread] |