This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17644] unexpected symbol redefinition error
- From: "boris at kolpackov dot net" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2004 19:06:53 -0000
- Subject: [Bug c++/17644] unexpected symbol redefinition error
- References: <20040923222323.17644.boris@kolpackov.net>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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