This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/21713] Syntax error
- From: "igodard at pacbell dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 May 2005 20:25:00 -0000
- Subject: [Bug c++/21713] Syntax error
- References: <20050522200517.21713.igodard@pacbell.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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