This is the mail archive of the gcc-bugs@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]

[Bug c++/26747] bad break/continue is not dectected until the gimplifier



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


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