<div dir="ltr"><div dir="ltr"><p style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px">Setting a watchpoint on the static object, nest::sli_neuron::recordablesMap_ in a GDB session taught me:</p><p style="color:rgb(51,51,51);font-family:Verdana,sans-serif;font-size:12px">The NEST binary built without -fopenmp-targets flag correctly init the object, while the NEST binary built with the -fopenmp-targets flag does nothing on the object.</p></div><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></div>