------- Comment #1 from pinskia at gcc dot gnu dot org 2008-04-18 23:21 ------- typedef int sym; void b(sym *sym) { sym *y; } /* 'y undeclared'(?!) */
sym *y is a multiple and not a variable definition so y is undeclared here and the error is correct since the variable sym shadows (and is in the scope) the type sym. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35976