aboutsummaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authorVolker Reichelt <reichelt@igpm.rwth-aachen.de>2006-04-24 08:38:05 +0000
committerVolker Reichelt <reichelt@gcc.gnu.org>2006-04-24 08:38:05 +0000
commit4e3bd7d56163a9d91ba255cbbbf4fa234b3da11a (patch)
tree2ef3f8856d88e9429a644d0ca74faf8fd25465a5 /gcc/cp/class.c
parentc0a3f887e5153990dd33e72dd4a6530ba19ab5ce (diff)
downloadgcc-4e3bd7d56163a9d91ba255cbbbf4fa234b3da11a.zip
gcc-4e3bd7d56163a9d91ba255cbbbf4fa234b3da11a.tar.gz
gcc-4e3bd7d56163a9d91ba255cbbbf4fa234b3da11a.tar.bz2
re PR c++/19963 (ICE on invalid member declaration)
PR c++/19963 * class.c (layout_class_type): Skip fields with invalid types. * g++.dg/other/incomplete2.C: New test. From-SVN: r113220
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index 1cf87dc..a7536bb 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -4607,6 +4607,8 @@ layout_class_type (tree t, tree *virtuals_p)
}
type = TREE_TYPE (field);
+ if (type == error_mark_node)
+ continue;
padding = NULL_TREE;