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

Reply via email to