This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/33287] namespace hides class definition



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]