[Bug c++/17644] unexpected symbol redefinition error

boris at kolpackov dot net gcc-bugzilla@gcc.gnu.org
Fri Sep 24 19:06:00 GMT 2004


------- Additional Comments From boris at kolpackov dot net  2004-09-24 19:06 -------
> the second is invalid

however it is accepted by g++ 3.4.2

> Basically in C++ you have to "reparse" the struct again after finishing
> the struct  and the standard says that if the type is  different than 
> before it is an error.

You mean the type of symbol is different or the type is different? I always
thought that types and functions form separate symbol spaces. If what you are
saying is true then the following is illegal too, right?

struct foo
{
};

foo
foo ();



-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17644



More information about the Gcc-bugs mailing list