More detailed diagnostic info about conflicted function types.
This commit is contained in:
@@ -728,6 +728,7 @@ static int HandleSymRedefinition (SymEntry* Entry, const Type* T, unsigned Flags
|
|||||||
/* New type must be compatible with the composite prototype */
|
/* New type must be compatible with the composite prototype */
|
||||||
if (IsDistinctRedef (E_Type, T, TC_EQUAL, TCF_MASK_QUAL)) {
|
if (IsDistinctRedef (E_Type, T, TC_EQUAL, TCF_MASK_QUAL)) {
|
||||||
Error ("Conflicting function types for '%s'", Entry->Name);
|
Error ("Conflicting function types for '%s'", Entry->Name);
|
||||||
|
TypeCompatibilityDiagnostic (T, E_Type, 0, "'%s' vs '%s'");
|
||||||
Entry = 0;
|
Entry = 0;
|
||||||
} else {
|
} else {
|
||||||
/* Refine the existing composite prototype with this new
|
/* Refine the existing composite prototype with this new
|
||||||
|
|||||||
Reference in New Issue
Block a user