Skip to contentSkip to conversation

Incorrect scoping

DISCUSSION Morten Welinder 1 participant 1 message Mar 31, 2006 Sparse checker

lore
Share & tools
lore
#0 lore raw

Sparse fails to detect this scoping monster:

typedef int typ;
static void typ (void) { }

gcc says...

foo.c:2: error: typ' redeclared as different kind of symbol foo.c:1: error: previous declaration of typ'

M.