• Nikolai Kosjar's avatar
    C++: Comment out a flaky test · e241444b
    Nikolai Kosjar authored
    The test relied on logic that was reverted with change
    LookupScopePrivate::findSpecialization() gets a "TemplateNameIdTable
    &specializations" with a non-deterministic order. Without the extra
    logic, the very first entry will be chosen as the found specialization.
    The non-deterministic order comes from the TemplateNameId::Compare,
    which calls std::lexicographical_compare() with the template arguments,
    which are FullySpecifiedTypes. The result of
    FullySpecifiedType::operator<() might depend on a pointer comparison.
    Change-Id: I8d69d1bb5831145b1c21a5ea848c0043f17ec415
    Reviewed-by: default avatarChristian Stenger <christian.stenger@theqtcompany.com>
cppcompletion_test.cpp 112 KB