bug-gnulib
[Top][All Lists]
Advanced

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

Re: 'static' in array-size func parm


From: Thien-Thi Nguyen
Subject: Re: 'static' in array-size func parm
Date: Wed, 06 Aug 2014 21:54:04 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux)

() Paul Eggert <address@hidden>
() Wed, 06 Aug 2014 09:16:48 -0700

   I'd be interested in getting this to work in gnulib, but
   unfortunately it doesn't work yet with RCS so let's fix that first.

OK.

   Actually, GCC 3.4.3 *can* compile that.  [particulars]
   Please try the following program instead:

   int
   last (int count, int all[static count])
   {
     return all[count - 1];
   }
   int
   last1 (int count, int all[static count])
   {
     return all[count - 1];
   }

I have installed that change.  Does it result in "...no" now?

   Perhaps I should also mention that the bug occurs with -O2 but does
   not occur when GCC is not optimizing.  This should work with the
   configure-time test, though, as it's built with -O2.

Thanks, that is useful, for mention in README (also installed).

-- 
Thien-Thi Nguyen
   GPG key: 4C807502
   (if you're human and you know it)
      read my lisp: (responsep (questions 'technical)
                               (not (via 'mailing-list)))
                     => nil

Attachment: signature.asc
Description: PGP signature


reply via email to

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