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

Sam James <sjames at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kacper.slominski72 at gmail 
dot co
                   |                            |m

--- Comment #8 from Sam James <sjames at gcc dot gnu.org> ---
Kacper Słomiński has got it down to:
```
#include <QStringTokenizer>
#include <QList>

int main() {
        auto expected = QStringList{"a", "b", "c", "d", "e"};
        auto tok = qTokenize(expected.join(u'x'), QLatin1Char('x'),
Qt::CaseSensitive, Qt::SkipEmptyParts);

        QStringList r;
        for (auto &&e : tok)
                r.push_back(e.toString());

        if (r.size() != expected.size()) abort();
}
```

which fails with:
```
$ g++ -DQT_NO_DEBUG $(pkg-config --libs --cflags Qt6Core) -std=gnu++17 foo.cxx
-o foo -O3 && ./foo
```

I'll attach preprocessed source for that but we're working on killing the Qt
dependency next.

Reply via email to