Skip to content
  • Stephen Kelly's avatar
    AutoGen: Don't iterate over a container while populating it. · 921d74d8
    Stephen Kelly authored
    The InitializeAutogenTarget creates new targets and adds them to the
    Targets container on the makefile.  In this method, we have a reference
    to that container and we are iterating over it.  That happens to work
    with hash_map, but it fails with undefined behavior when using the
    std::unordered_map from libstdc++-4.9 (and likely others).
    921d74d8