public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/10313: Compiler crashes on 'jump to case label' error
@ 2003-04-04 21:54 bangerth
  0 siblings, 0 replies; 2+ messages in thread
From: bangerth @ 2003-04-04 21:54 UTC (permalink / raw)
  To: bugs, gcc-bugs, gcc-prs, nobody

Synopsis: Compiler crashes on 'jump to case label' error

State-Changed-From-To: open->closed
State-Changed-By: bangerth
State-Changed-When: Fri Apr  4 21:54:44 2003
State-Changed-Why:
    Confirmed. Well-known bug ('error routines re-entered') 
    that is already fixed in 3.3 and mainline. Thanks anyway
      Wolfgang

http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10313


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

* c++/10313: Compiler crashes on 'jump to case label' error
@ 2003-04-04 21:36 bugs
  0 siblings, 0 replies; 2+ messages in thread
From: bugs @ 2003-04-04 21:36 UTC (permalink / raw)
  To: gcc-gnats


>Number:         10313
>Category:       c++
>Synopsis:       Compiler crashes on 'jump to case label' error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 04 21:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Mair Allen-Williams
>Release:        gcc 3.2.2
>Organization:
>Environment:
Debian 3.0
>Description:
Code error in switch statement (unclosed bracket resulting in default: label being inside another) later caused an internal compiler error. The error only occurred when a line above the error opened a filestream for input. 

The following code demonstrates the error:

//start code
#include <fstream>
using std::ifstream;

void cache_update(int act)
 {
    switch(act)
      {
      case 3:
	{
	  ifstream input(".listing");
	  int i=0;
	  while(++i<4)
	    {
	      bool found;
	      if (!found)
		{
		}
	      break;
	    }
	default:
	  {
	  }
	}
      }
    void createEmptyCache()
      {
      }
>How-To-Repeat:
save the code above into a file, say error.cpp

type gcc error.cpp

admire results
>Fix:
don't make coding errors
>Release-Note:
>Audit-Trail:
>Unformatted:


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

end of thread, other threads:[~2003-04-04 21:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-04 21:54 c++/10313: Compiler crashes on 'jump to case label' error bangerth
  -- strict thread matches above, loose matches on Subject: below --
2003-04-04 21:36 bugs

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).