Detect alias cycles
This commit is contained in:
@ -145,8 +145,12 @@ namespace elna::gcc
|
||||
{
|
||||
for (const auto& error : errors)
|
||||
{
|
||||
auto gcc_location = elna::gcc::get_location(&error->position);
|
||||
location_t gcc_location{ UNKNOWN_LOCATION };
|
||||
|
||||
if (error->position.line != 0 || error->position.column != 0)
|
||||
{
|
||||
gcc_location = elna::gcc::get_location(&error->position);
|
||||
}
|
||||
error_at(gcc_location, error->what().c_str());
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user