public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/12913] New: Jumps into variable length array scope not rejected
@ 2003-11-05 17:23 falk at debian dot org
  2003-11-08 16:44 ` [Bug c/12913] " pinskia at gcc dot gnu dot org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: falk at debian dot org @ 2003-11-05 17:23 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Jumps into variable length array scope not rejected
           Product: gcc
           Version: 3.3.2
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org

gcc does not reject jumps over the declaration of a variable length array:

void f(int l) { 
  goto label; 
  int a[l]; 
 label:; 
} 
    
void g (int l) {
  switch (l) {
  case 1:;
    int a[l];
  default:;
  }
}

gcc 3.3 rejects at least the first case with the pretty misleading error message

test.c:4: error: label `label' used before containing binding contour

but mainline accepts both.


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

end of thread, other threads:[~2005-04-22 14:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-05 17:23 [Bug c/12913] New: Jumps into variable length array scope not rejected falk at debian dot org
2003-11-08 16:44 ` [Bug c/12913] " pinskia at gcc dot gnu dot org
2003-11-14 16:33 ` dhazeghi at yahoo dot com
2003-11-15 16:12 ` falk at debian dot org
2003-11-15 16:15 ` falk at debian dot org
2004-03-07  1:43 ` pinskia at gcc dot gnu dot org
2004-08-11 21:05 ` jsm28 at gcc dot gnu dot org
2005-04-19 23:53 ` jsm28 at gcc dot gnu dot org
2005-04-20 16:42 ` cvs-commit at gcc dot gnu dot org
2005-04-22 12:59 ` [Bug c/12913] [4.0 Regression] " cvs-commit at gcc dot gnu dot org
2005-04-22 14:07 ` 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).