This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/26747] bad break/continue is not dectected until the gimplifier
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 12 Oct 2006 01:12:23 -0000
- Subject: [Bug c++/26747] bad break/continue is not dectected until the gimplifier
- References: <bug-26747-6528@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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