https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114691
Bug ID: 114691
Summary: [11/12/13/14 Regression] Bogus ignoring loop
annotation warning
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: c++
Assignee: unassigned at gcc dot gnu.org
Reporter: jakub at gcc dot gnu.org
CC: jakub at gcc dot gnu.org, jason at gcc dot gnu.org,
pinskia at gcc dot gnu.org, ppalka at gcc dot gnu.org,
sjames at gcc dot gnu.org, webrown.cpp at gmail dot com
Depends on: 114409
Target Milestone: ---
+++ This bug was initially created as a clone of Bug #114409 +++
As the PR114409 initially reported P1 bug is now fixed, I'm cloning it for the
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114409#c10 regression.
int foo (int);
void
qux (int x)
{
#pragma GCC ivdep
while (int y = foo (x))
++y;
}
With no options this didn't emit any warnings e.g. in r200000 (i.e. in GCC
4.9), while
it emits
pr114409-2.C:7:24: warning: ignoring loop annotation
warning in r220000 (i.e. in GCC 5+).
Can't bisect easily, because in various revisions in between it ICEs on
ANNOTATE_EXPR.
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114409
[Bug 114409] [14 Regression] ICE after adding novector pragmas (internal
compiler error: in tsubst_expr, at cp/pt.cc:21794) since
r14-4229-g9c62af101e11e1cce573c2b3d2e18b403412dbc8