On Thursday, 29 November 2018 06:28:39 PST Jean-Michaël Celerier wrote:
> #4 QLinkedList<QString>::end (this=0x23dd90) at
> ../../../include/QtCore/../../../../qt5/qtbase/src/corelib/tools/qlinkedlist
> .h:209 #5 Grammar::Grammar (this=<optimized out>) at
> /opt/build-sdk/qt5/qtbase/src/tools/qlalr/lalr.cpp:188
> #6 main (argc=4, argv=<optimized out>) at
> /opt/build-sdk/qt5/qtbase/src/tools/qlalr/main.cpp:103
>
> I've only glanced quickly (read, less than 15 seconds) at the code but I
> don't understand how it can work in any reasonable fashion: it seems that
> it tries to construct a string (`QString Grammar::start` ) with the `end()`
> of a container in lalr.cpp:188. But since it works in so many other
> configurations I must be missing something somewhere.
Most definitely a compiler bug. The qlalr.cpp:187-188 is:
Grammar::Grammar ():
start (names.end ())
start is an iterator and names is a member variable (orderd before start). So
the QLinkedList should have just been created and still be empty. detach()
shouldn't have anything to do.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
_______________________________________________
Interest mailing list
[email protected]
https://lists.qt-project.org/listinfo/interest