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++/15788] Poor error recovery


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-06-03 01:40 -------
Confirmed, here is a small example:
int f()
{
  if (1)
  {
   return 1;
  else
  {
  }
}
int g()
{
}

It is interesting as 3.3 produces just a sytanx error before else (but I think it stops parsing at this point.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
           Keywords|                            |diagnostic
   Last reconfirmed|0000-00-00 00:00:00         |2004-06-03 01:40:28
               date|                            |


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


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