This program:

void foo(void)
{
  int x __attribute__((visibility("hidden")));
}

makes no sense and should produce a compilation error.


-- 
           Summary: visibility attribute should not be permitted on local
                    variables
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: geoffk at gcc dot gnu dot org
 GCC build triplet: *-*-*
  GCC host triplet: *-*-*
GCC target triplet: *-*-*


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

Reply via email to