Workaround MacOS integration tests
This commit is contained in:
parent
6246ff2711
commit
70630ff6b3
2 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue