Compiler error #40 report

Mo McKinlay mmckinlay@labs.interopen.org
Wed Mar 22 17:11:00 GMT 2000


gcc 2.95.2 on i686-pc-linux-gnu gives the following error:

temp.cc: In function `void format1()':
temp.cc:9: invalid use of type decl `typedef short int date' as expression

So it looks like the bug has been fixed.

# typedef short date;
#
# struct { } ar;
# 
# static void
# format1(void)
# {
# 
# char	*p = ar.date;		/* BUG IS HERE */
# 
# }

-- 
Mo McKinlay                                T: +44 (0) 709 22 55 05  x1
Chief Software Architect                   F: +44 (0) 709 22 55 05  x3
inter/open                                 E: mmckinlay@labs.interopen.org
A division of Bekon Marketing Limited      W: http://www.interopen.org



More information about the Gcc-bugs mailing list