public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/26747]  New: break is not dectected until the gimplifier
@ 2006-03-18 16:28 pinskia at gcc dot gnu dot org
  2006-03-18 16:29 ` [Bug c++/26747] bad break/continue " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-18 16:28 UTC (permalink / raw)
  To: gcc-bugs

Testcase:
void f(void)
{
  break;
}


-- 
           Summary: break is not dectected until the gimplifier
           Product: gcc
           Version: 4.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
OtherBugsDependingO 24222
             nThis:


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


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

* [Bug c++/26747] bad break/continue is not dectected until the gimplifier
  2006-03-18 16:28 [Bug c++/26747] New: break is not dectected until the gimplifier pinskia at gcc dot gnu dot org
@ 2006-03-18 16:29 ` pinskia at gcc dot gnu dot org
  2006-10-12  1:08 ` bangerth at dealii dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-03-18 16:29 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2006-03-18 16:29 -------
This is only for the C++ front-end, the C front-end was fixed a while back.

Continue is the same issue


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Summary|break is not dectected until|bad break/continue is not
                   |the gimplifier              |dectected until the
                   |                            |gimplifier


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


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

* [Bug c++/26747] bad break/continue is not dectected until the gimplifier
  2006-03-18 16:28 [Bug c++/26747] New: break is not dectected until the gimplifier pinskia at gcc dot gnu dot org
  2006-03-18 16:29 ` [Bug c++/26747] bad break/continue " pinskia at gcc dot gnu dot org
@ 2006-10-12  1:08 ` bangerth at dealii dot org
  2006-10-12  1:12 ` pinskia at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: bangerth at dealii dot org @ 2006-10-12  1:08 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from bangerth at dealii dot org  2006-10-12 01:08 -------
What exactly is the problem here? I get this as an error message:

g/x> /home/bangerth/bin/gcc-4.2-pre/bin/c++ -c x.cc
x.cc: In function ‘void f()’:
x.cc:3: error: break statement not within loop or switch

That seems acceptable to me...

W.


-- 

bangerth at dealii dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bangerth at dealii dot org
             Status|UNCONFIRMED                 |WAITING


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


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

* [Bug c++/26747] bad break/continue is not dectected until the gimplifier
  2006-03-18 16:28 [Bug c++/26747] New: break is not dectected until the gimplifier pinskia at gcc dot gnu dot org
  2006-03-18 16:29 ` [Bug c++/26747] bad break/continue " pinskia at gcc dot gnu dot org
  2006-10-12  1:08 ` bangerth at dealii dot org
@ 2006-10-12  1:12 ` pinskia at gcc dot gnu dot org
  2006-10-12  1:25 ` bangerth at math dot tamu dot edu
  2007-09-24 18:01 ` pcarlini at suse dot de
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-10-12  1:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2006-10-12 01:12 -------
(In reply to comment #2)
> What exactly is the problem here? I get this as an error message:
> 
> g/x> /home/bangerth/bin/gcc-4.2-pre/bin/c++ -c x.cc
> x.cc: In function ‘void f()’:
> x.cc:3: error: break statement not within loop or switch

Yes but this semantics anyalsis is done while gimplifing and not while parsing.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|WAITING                     |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2006-10-12 01:12:23
               date|                            |


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


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

* [Bug c++/26747] bad break/continue is not dectected until the gimplifier
  2006-03-18 16:28 [Bug c++/26747] New: break is not dectected until the gimplifier pinskia at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-10-12  1:12 ` pinskia at gcc dot gnu dot org
@ 2006-10-12  1:25 ` bangerth at math dot tamu dot edu
  2007-09-24 18:01 ` pcarlini at suse dot de
  4 siblings, 0 replies; 6+ messages in thread
From: bangerth at math dot tamu dot edu @ 2006-10-12  1:25 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from bangerth at math dot tamu dot edu  2006-10-12 01:25 -------
Subject: Re:  bad break/continue is not dectected until the
 gimplifier


> Yes but this semantics anyalsis is done while gimplifing and not while parsing.

But I get the message also when using -fsyntax-only...

W.

-------------------------------------------------------------------------
Wolfgang Bangerth                email:            bangerth@math.tamu.edu
                                 www: http://www.math.tamu.edu/~bangerth/


-- 


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


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

* [Bug c++/26747] bad break/continue is not dectected until the gimplifier
  2006-03-18 16:28 [Bug c++/26747] New: break is not dectected until the gimplifier pinskia at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-10-12  1:25 ` bangerth at math dot tamu dot edu
@ 2007-09-24 18:01 ` pcarlini at suse dot de
  4 siblings, 0 replies; 6+ messages in thread
From: pcarlini at suse dot de @ 2007-09-24 18:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from pcarlini at suse dot de  2007-09-24 18:01 -------
Isn't the C++ front-end also fixed?  I can confirm that currently the error
comes from cp_parser_jump_statement.  In general, the check in build_bc_goto is
apparently dead: I have been able to build and test with gcc_assert (label) in
its place...


-- 

pcarlini at suse dot de changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pcarlini at suse dot de


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


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

end of thread, other threads:[~2007-09-24 18:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-03-18 16:28 [Bug c++/26747] New: break is not dectected until the gimplifier pinskia at gcc dot gnu dot org
2006-03-18 16:29 ` [Bug c++/26747] bad break/continue " pinskia at gcc dot gnu dot org
2006-10-12  1:08 ` bangerth at dealii dot org
2006-10-12  1:12 ` pinskia at gcc dot gnu dot org
2006-10-12  1:25 ` bangerth at math dot tamu dot edu
2007-09-24 18:01 ` pcarlini at suse dot de

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