<div dir="ltr">All,<div>Alexey agreed this is a bug of Clang and is working on a fix, as during the global initialization phase, the instance's pointer to the vtable is never set.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, Jul 25, 2019 at 1:47 PM Itaru Kitayama <<a href="mailto:itaru.kitayama@gmail.com">itaru.kitayama@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi,<div>I am revisiting this possible compiler bug in Clang 8.0.0.</div><div><br></div><div>In the source code I am developing, there's a global static variable, nest::sli_neuron::recordablesMap_ put in the BSS section and it is expected to be fully initialized by the time nest::sli_neuron::sli_neuron() gets called, however in a gdb session:</div><div><br></div><div>(gdb) p nest::sli_neuron::recordablesMap_</div>Python Exception <type 'exceptions.AttributeError'> 'gdb.Type' object has no attribute 'name':<br>$1 = {<std::map<Name, double (nest::sli_neuron::*)() const, std::less<Name>, std::allocator<std::pair<Name const, double (nest::sli_neuron::*)() const> > >> = std::map with 0 elements, _vptr$RecordablesMap = 0x0}<div><br></div><div>this doesn't happen when -fopenmp-targets is _not_ used, is it not trivial to come up a reproducer, thus I am sending a work-in-progress report hoping someone will shed some light on this.</div><div><br></div><div>Thanks,</div><div>Itaru.</div></div>
</blockquote></div>