[Bug c++/19073] cp_namespace_decl not returning all decls

2004-12-18 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-19 
01:15 ---
The use namespace_binding instead.  That is the correct way of getting a decl.
Look at pushdecl for an example of how to use it.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19073


[Bug c++/19073] cp_namespace_decl not returning all decls

2004-12-18 Thread sstrasser at systemhaus-gruppe dot de

--- Additional Comments From sstrasser at systemhaus-gruppe dot de  
2004-12-19 01:04 ---
> The struct cp_binding_level contains all the decls.
that seems to be the same thing. cp_namespace_decls uses NAMESPACE_LEVEL macro
which brings you to a cp_binding_level structure.
maybe the summary of this bug shouldn't be about "cp_namespace_decls" but I
don't see why this is expected behaviour. the behaviour is not specific to this
function.

and then again, because everybody is telling me I shouldn't use
-fdump-translation-unit: I don't. I just proposed it as a way to check this bug.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19073


[Bug c++/19073] cp_namespace_decl not returning all decls

2004-12-18 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-19 
00:53 ---
Then again I don't know what you are trying to do, and why you need this 
function really.

I think -fdump-translation-unit should be removed, it is only useful for gcc 
developers even then it 
very useful any more in fact there are better ways to get the information 
needed.

-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19073


[Bug c++/19073] cp_namespace_decl not returning all decls

2004-12-18 Thread pinskia at gcc dot gnu dot org

--- Additional Comments From pinskia at gcc dot gnu dot org  2004-12-19 
00:51 ---
This is definitely an expected behavior.

The struct cp_binding_level contains all the decls.

-- 
   What|Removed |Added

   Severity|normal  |minor


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19073