public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/25802]  New: VM types of external and internal linkage variables not diagnosed
@ 2006-01-16  0:32 jsm28 at gcc dot gnu dot org
  2006-01-16  1:19 ` [Bug c/25802] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jsm28 at gcc dot gnu dot org @ 2006-01-16  0:32 UTC (permalink / raw)
  To: gcc-bugs

GCC doesn't diagnose function-scope VM declarations of variables with external
or internal linkage.  (VM declarations of function-local statics are OK.)  Four
tests (all should be rejected unconditionally, none are even with -std=c99
-pedantic-errors):

extern int (*a)[];
void f(int b) { extern int (*a)[b]; }

static int (*a)[];
void f(int b) { extern int (*a)[b]; }

extern int (*a)[];
void f(int b) { typedef int (*T)[b]; extern T a; }

static int (*a)[];
void f(int b) { typedef int (*T)[b]; extern T a; }


-- 
           Summary: VM types of external and internal linkage variables not
                    diagnosed
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jsm28 at gcc dot gnu dot org
OtherBugsDependingO 16989
             nThis:


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


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-09-19  3:33 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-01-16  0:32 [Bug c/25802] New: VM types of external and internal linkage variables not diagnosed jsm28 at gcc dot gnu dot org
2006-01-16  1:19 ` [Bug c/25802] " pinskia at gcc dot gnu dot org
2006-05-06 21:24 ` mrs at apple dot com
2006-05-18 18:22 ` mrs at gcc dot gnu dot org
2006-05-18 19:29 ` mrs at apple dot com
2006-06-04 17:03 ` jsm28 at gcc dot gnu dot org
2006-09-19  3:33 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).