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: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 24 Sep 2004 18:57:07 -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 pinskia at gcc dot gnu dot org 2004-09-24 18:57 -------
The first example is valid because ::foo is explicantly named but the second is invalid. 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.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17644