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

Matt Godbolt <matt at godbolt dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |matt at godbolt dot org

--- Comment #2 from Matt Godbolt <matt at godbolt dot org> ---
Another simple repro: https://compiler-explorer.com/z/veaM7rGzz

```
#include <array>

constexpr std::array<int, 3> values{1, 2, 3};
void test() {
    int sum = 0;
    template for (constexpr auto value : values) {
        sum += value;
    }  // 3 spurious warnings
}
```

Reply via email to