summaryrefslogtreecommitdiff
path: root/gcc/cp/class.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-17 19:25:05 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2005-02-17 19:25:05 +0000
commit171898879e063d4c6f2321802c1799c428d4dba0 (patch)
tree8e65cf1212a979de73c372e019c8f791799fda07 /gcc/cp/class.c
parent3846508d050b277700b61b136c2523b2bfe23c03 (diff)
downloadgcc-171898879e063d4c6f2321802c1799c428d4dba0.tar.gz
gcc/cp/ChangeLog:
PR c++/20028 * class.c (finish_struct): Initialize TYPE_SIZE_UNIT of a template along with TYPE_SIZE. gcc/testsuite/ChangeLog: PR c++/20028 * g++.dg/template/crash34.C: New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95182 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp/class.c')
-rw-r--r--gcc/cp/class.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/cp/class.c b/gcc/cp/class.c
index ae73f522121..77e9b80f4f9 100644
--- a/gcc/cp/class.c
+++ b/gcc/cp/class.c
@@ -5111,6 +5111,7 @@ finish_struct (tree t, tree attributes)
finish_struct_methods (t);
TYPE_SIZE (t) = bitsize_zero_node;
+ TYPE_SIZE_UNIT (t) = size_zero_node;
/* We need to emit an error message if this type was used as a parameter
and it is an abstract type, even if it is a template. We construct