From f9812930c1420646b33b785379333f2529dd0969 Mon Sep 17 00:00:00 2001 From: acqn Date: Tue, 30 Mar 2021 16:47:57 +0800 Subject: [PATCH] More detailed diagnostic info about conflicted function types. --- src/cc65/symtab.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/cc65/symtab.c b/src/cc65/symtab.c index b4c97e962..aa4a9a44a 100644 --- a/src/cc65/symtab.c +++ b/src/cc65/symtab.c @@ -728,6 +728,7 @@ static int HandleSymRedefinition (SymEntry* Entry, const Type* T, unsigned Flags /* New type must be compatible with the composite prototype */ if (IsDistinctRedef (E_Type, T, TC_EQUAL, TCF_MASK_QUAL)) { Error ("Conflicting function types for '%s'", Entry->Name); + TypeCompatibilityDiagnostic (T, E_Type, 0, "'%s' vs '%s'"); Entry = 0; } else { /* Refine the existing composite prototype with this new