[Bug c++/21713] Syntax error
igodard at pacbell dot net
gcc-bugzilla@gcc.gnu.org
Sun May 22 20:25:00 GMT 2005
------- Additional Comments From igodard at pacbell dot net 2005-05-22 20:24 -------
The test doesn't #include any posix functions. The problem seems to be a partial
hide of the name, because a simple declaration works:
int index;
int main (){
index = 0;
}
gives no errors. Interestingly,
class index {};
int main (){
class index i;
}
gets you:
foo.cc: In function `int main()':
foo.cc:3: error: aggregate `index i' has incomplete type and cannot be defined
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21713
More information about the Gcc-bugs
mailing list