This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/17644] New: 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: 23 Sep 2004 22:23:24 -0000
- Subject: [Bug c++/17644] New: unexpected symbol redefinition error
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
$ cat >text.cxx
struct foo
{
};
struct bar
{
foo
foo ();
};
$ g++ --version
g++ (GCC) 3.3.4 (Debian 1:3.3.4-12)
$ g++ -c test.cxx
test.cxx:8: error: declaration of `foo bar::foo()'
test.cxx:2: error: changes meaning of `foo' from `struct foo'
$ g++-3.4 --version
g++-3.4 (GCC) 3.4.2 (Debian 3.4.2-2)
$ g++ -c test.cxx
test.cxx:8: error: declaration of `foo bar::foo()'
test.cxx:2: error: changes meaning of `foo' from `struct foo'
This code compiles fine with both intel c++ 8.1 and current comeau online.
--
Summary: unexpected symbol redefinition error
Product: gcc
Version: 3.4.2
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: boris at kolpackov dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-linux
GCC host triplet: i686-linux
GCC target triplet: i686-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17644