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

Drea Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2026-08-22
             Status|UNCONFIRMED                 |NEW

--- Comment #1 from Drea Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
template <typename T>
inline void foo(T *first) {
#pragma GCC unroll 4
#pragma GCC novector
    while (first != 0 && 1 //)
        ++first;
}

void bar(int *p) {
  foo<int>(p);
}
```

The front-end produces:
if (ANNOTATE_EXPR <ANNOTATE_EXPR <<<< error >>>, unroll 4>, no-vector>) goto
<D.3002>; else goto <D.3000>;


But ANNOTATE_EXPR of an error should be an error.

Reply via email to