This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/21713] Syntax error


------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]