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++/17644] unexpected symbol redefinition error


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


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