https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98345

            Bug ID: 98345
           Summary: Different behaviour of gcc Versions (<=8, >=9)
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: budek at wtal dot de
  Target Milestone: ---

The following (strange) construction seems to behave different
in Versions <=8 and >=9:
for( ... ; ... ; ... )
        for(... ; ... ; break)...
Versions <=8 cancel the inner loop, Versions >=9 the outer loop.

The real problem is, that a similar construction is used in QT4's
implementation of foreach() (Qt/qglobal.h and QtCore/qglobal.h).

Compiling old QT projects with a version >=9 will fail, if
foreach is used.

Reply via email to