[Top][All Lists]

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

Re: [Tinycc-devel] missing check after calling type_size in classify_x86

From: grischka
Subject: Re: [Tinycc-devel] missing check after calling type_size in classify_x86_64_arg
Date: Mon, 24 Jun 2019 11:50:26 +0200
User-agent: Thunderbird (Windows/20090812)

Pascal Cuoq wrote:

      int t[][3];  [ error: unknown type size ]

Actually that is not wrong.  It's the same as

      extern int t[][3];

MSVC accepts it without warning, and GCC too if either 'extern' or
the size is still specified:

      int t[][3];
      extern int t[][3];
      int t[][3] = {{1,2,3}};

I'v pushed a patch that does allow that (among other things ;)

W.r.t. changes on VT_EXTERN, they were originally based on the idea
that I wanted the distinction between definition and declaration to
be provided on the Sym level (rather than the ESym one).

-- gr

reply via email to

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