Workaround MacOS integration tests

This commit is contained in:
Jonathan Müller 2018-12-18 18:04:58 +01:00
commit 70630ff6b3
2 changed files with 4 additions and 2 deletions

View file

@ -26,7 +26,8 @@ void cpp_entity_index::register_definition(cpp_entity_id
{
// already in map, override declaration
auto& value = result.first->second;
if (value.is_definition)
if (value.is_definition && !is_template_specialization(value.entity->kind()))
// allow duplicate definition of template specializations as a workaround for MacOS
throw duplicate_definition_error();
value.is_definition = true;
value.entity = entity;