aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Merrill <jason@gcc.gnu.org>2002-12-19 12:43:54 -0500
committerJason Merrill <jason@gcc.gnu.org>2002-12-19 12:43:54 -0500
commit92f93e54a36d424390b05a14df11d0d723e84f88 (patch)
tree379e706639fac601c7a33fba9b6597855c065b16
parent0ca7178c8462ce29e086db3cb8f0a080fc7f80f2 (diff)
downloadgcc-92f93e54a36d424390b05a14df11d0d723e84f88.zip
gcc-92f93e54a36d424390b05a14df11d0d723e84f88.tar.gz
gcc-92f93e54a36d424390b05a14df11d0d723e84f88.tar.bz2
Handle anonymous unions at the tree level.
C++ ABI change: Mangle anonymous unions using the name of their first named field (by depth-first search). Should not cause binary compatibility problems, though, as the compiler previously didn't emit anything for affected unions. * cp-tree.def (ALIAS_DECL): New tree code. * decl2.c (build_anon_union_vars): Build ALIAS_DECLs. Return the first field, not the largest. (finish_anon_union): Don't mess with RTL. Do set DECL_ASSEMBLER_NAME, push the decl, and write it out at namespace scope. * decl.c (lookup_name_real): See through an ALIAS_DECL. (pushdecl): Add namespace bindings for ALIAS_DECLs. * rtti.c (unemitted_tinfo_decl_p): Don't try to look at the name of a decl which doesn't have one. * typeck.c (build_class_member_access_expr): Don't recurse if we already have the type we want. From-SVN: r60315
-rw-r--r--gcc/testsuite/g++.old-deja/g++.brendan/union1.C1
1 files changed, 0 insertions, 1 deletions
diff --git a/gcc/testsuite/g++.old-deja/g++.brendan/union1.C b/gcc/testsuite/g++.old-deja/g++.brendan/union1.C
index ca78146..6ae0605 100644
--- a/gcc/testsuite/g++.old-deja/g++.brendan/union1.C
+++ b/gcc/testsuite/g++.old-deja/g++.brendan/union1.C
@@ -3,7 +3,6 @@
// the DECL_SIZE of the decls, instead of comparing the DECL_SIZE nodes.
// The compiler currently fails to allocate space for the static union.
-// excess errors test - XFAIL *-*-*
unsigned
hash(const double d)