This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
cp tree question
- From: Stefan Strasser <sstrasser at systemhaus-gruppe dot de>
- To: gcc at gcc dot gnu dot org
- Date: Sat, 18 Dec 2004 08:28:04 +0100
- Subject: cp tree question
Good morning,
I'm wondering if it is a bug or desired behaviour that, in the current
release version of gcc, TREE_CHAIN()ing the cp_namespace_decls() result
doesn't bring up type_decl nodes of c++ enum's, but gcc version 3.3.4 does?
have they been moved into another list?
you can easily check this with -fdump-translation-unit on the code "enum
blah{};". there is no blah in the .tu file with version 3.4.3.
(don't put any enumerators in there because so the type_decl node gets
queued by the DECL_TYPE() of the enumerator node. but it's not in
cp_namespace_decls())
thanks for your help,
--
Stefan Strasser