This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: PATCH: RFA Fix C/13014


On Sun, 16 Nov 2003, Eric Christopher wrote:

> > Does this yield the proper errors when the break or continue is within a
> > nested function located inside a switch?  (You can't jump out of nested 
> > functions that way, only by goto to explicitly declared labels.)
> 
> Testcase? :) I tried to work up a couple but I think my mind kept giving
> me valid testcases.

void
foo (int a)
{
  switch (a) {
    void bar (void) { break; }
  }
}

(which 3.3.2 gives the proper error on).

-- 
Joseph S. Myers
jsm@polyomino.org.uk


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]