cling
cling copied to clipboard
completion crash with iostream
There is an issue with the completion when you include <iostream>
.
The simplest case is the following lines in the cling interpreter
#include <iostream>
std::cout+TAB
As you can see in this demo
produced by @SylvainCorlay
I confirm this behavior, I think that @johanmabille has also experienced this.
I think it is the same as #147. I am looking at it but it seems tricky: for some reason we are destroying the lexer.
I experience the same issue as @SylvainCorlay and @gouarin. The example in #147 works for me.
The example in #147 also works for me.
@vgvassilev is there a simple rule that we could apply to the string to complete to disable auto-completion for cases that may crash?
@gouarin, huh? Fails for me on the master... The issue seems very subtle.
@SylvainCorlay, not that I am aware of.
The example in #147 works for me too.
@vgvassilev on my side I'm using an old version of cling, based on commit efd44687. I didn't try #147 on master.
@vgvassilev, I installed cling from the nightly build for ubuntu 16 and with a fresh build using the clone.sh script. And I have this issue for both.