|
From: | Pascal Cuoq |
Subject: | Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg |
Date: | Sun, 23 Jun 2019 14:20:32 +0000 |
So, pushing the previous stuff down the stack and investigating
post_type, it is currently making a minimal effort to reject arrays of functions, and I tried to insert a better filter at the place where the check was (see attached patch). The new version continues to reject this example:
typedef void f(void);
f t[3];
(with a more generic message)
The new version also rejects all my previous examples quoted above, and the following, which is currently accepted because
type->t is not masked in the current implementation:
const f t[3];
If this patch can be tweaked into something acceptable, I will also add tests for the new rejected constructs and validate the message change for the existing test.
Pascal
|
arrays_of_incomplete.patch
Description: arrays_of_incomplete.patch
[Prev in Thread] | Current Thread | [Next in Thread] |