This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/33287] namespace hides class definition
- From: "fang at csl dot cornell dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2007 18:11:47 -0000
- Subject: [Bug c++/33287] namespace hides class definition
- References: <bug-33287-15054@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from fang at csl dot cornell dot edu 2007-09-03 18:11 -------
Subject: Re: namespace hides class definition
> ------- Comment #1 from pinskia at gcc dot gnu dot org 2007-09-03 18:05 -------
> Yes and this correct.
> Though the error was wrong.
> On the trunk we get:
> t.cc:12: error: 'namespace C1 { }' redeclared as different kind of symbol
> t.cc:2: error: previous declaration of 'class C1'
... which was fixed by patch referenced in PR 30734 (PR 2708) on trunk, if
you want to try/request a backport.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33287