public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/17644] New: unexpected symbol redefinition error
@ 2004-09-23 22:23 boris at kolpackov dot net
  2004-09-23 22:50 ` [Bug c++/17644] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: boris at kolpackov dot net @ 2004-09-23 22:23 UTC (permalink / raw)
  To: gcc-bugs

$ 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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2005-07-31  5:40 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-23 22:23 [Bug c++/17644] New: unexpected symbol redefinition error boris at kolpackov dot net
2004-09-23 22:50 ` [Bug c++/17644] " pinskia at gcc dot gnu dot org
2004-09-24 18:52 ` boris at kolpackov dot net
2004-09-24 18:57 ` pinskia at gcc dot gnu dot org
2004-09-24 19:06 ` boris at kolpackov dot net
2004-11-06 21:18 ` pinskia at gcc dot gnu dot org
2005-07-31  5:41 ` pinskia at gcc dot gnu dot org
2005-07-31  5:46 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).