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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P2
      Known to work|                            |6.2.0
   Target Milestone|---                         |6.5
            Summary|continue statements in      |[6/7/8/9 Regression]
                   |constexpr functions causes  |continue statements in
                   |unbounded looping           |constexpr functions causes
                   |                            |unbounded looping
      Known to fail|                            |6.3.0, 7.1.0, 8.1.0, 9.0

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Regressed on the GCC 6 branch - GCC 6.2 works for me.  Some GCCs chose to
not hang but diagnose it like

t.C: In function ‘void test()’:
t.C:17:33:   in constexpr expansion of ‘sampleFn()’
t.C:8:9: error: constexpr loop iteration count exceeds limit of 262144 (use
-fconstexpr-loop-limit= to increase the limit)
         for (int j = 0; j < 10; ++j ) {}
         ^~~

Reply via email to