[Bug c++/17644] New: unexpected symbol redefinition error
boris at kolpackov dot net
gcc-bugzilla@gcc.gnu.org
Thu Sep 23 22:23:00 GMT 2004
$ 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
More information about the Gcc-bugs
mailing list