From gcc-patches Tue Apr 08 14:35:49 2008 From: Dirk Mueller Date: Tue, 08 Apr 2008 14:35:49 +0000 To: gcc-patches Subject: Re: [PATCH][RFC] Add a subset of -Warray-bounds warnings to C/C++ front ends Message-Id: <200804081635.49462.dmuell () gmx ! net> X-MARC-Message: https://marc.info/?l=gcc-patches&m=120766781901519 On Tuesday 08 April 2008, Simon Baldwin wrote: > If my reading of the code is correct here, the probable conservative > course here is to amend the comments to reflect the code, rather than > the other way round, noting that arrays sized two elements or less have > this check suppressed. And maybe add an explicit test case for > clarity. The riskier course is to enable the checks for arrays > dimensioned two and above, and see what happens. Any preference? The code should be adjusted to match the comment, I believe. Greetings, Dirk