On 11/05/2015 12:33 PM, Andreas Arnez wrote:

Thanks again for reviewing.  Are you going to look at patch #2 as well?

Yeah, still thinking about that one.

Does C++ have similar issues?

Not this particular issue, AFAIK.  But I've just looked at how C++ fares
with the enhanced version of pr67192.c from patch #2.  There I see the
following:

   Breakpoint 2, f4 () at pr67192.cc:54
   (gdb) p cnt
   $1 = 16

I.e., when breaking on "while (1)" the first loop iteration has already
executed.  This is because the C++ parser assigns the backward-goto to
the 'while' token.  It's the same issue you pointed at with version 2 of
my patch.

Shall I open a bug for that?

I'd obviously prefer if you'd manage to get the two frontends behave identically. The alternative would be to open a bug.


Bernd

Reply via email to