The following snippet

  #define FIRST ((void*)0x80)
  #define LAST  ((void*)0x86)

  static int b[LAST-FIRST];

now (2009-03-31) generates the following compiler errors which did not
appear two(?) days ago.

  error: variable-size type declared outside of any function
  error: variable-size type declared outside of any function

I assume the diagnosis as such is correct, but the fact that it is issued
twice doesn't seem to be.

I believe this is a consequence of the following patch.

2009-03-29  Joseph Myers  <jos...@codesourcery.com>

       PR c/456
       PR c/5675
       PR c/19976
       PR c/29116
       PR c/31871
       PR c/35198


-- 
           Summary: "error: variable-size type declared outside of any
                    function" is issued twice
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: gerald at pfeifer dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=39605

Reply via email to