This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
gcc-20001027: Funny business with types on return
- To: gcc-bugs at gcc dot gnu dot org
- Subject: gcc-20001027: Funny business with types on return
- From: Horst von Brand <vonbrand at sleipnir dot valparaiso dot cl>
- Date: Sat, 28 Oct 2000 11:39:05 -0300
Red Hat 7, i686
The following gets the bogus warning:
/tmp/tst.c:7: warning: return from incompatible pointer type
struct {
char name[8];
} a;
char *f()
{
return &a.name;
}
--
Horst von Brand vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Vin~a del Mar, Chile +56 32 672616