OSDN Git Service

PR c++/42623
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 9 Apr 2010 15:20:58 +0000 (15:20 +0000)
committerMasaki Muranaka <monaka@monami-software.com>
Sun, 23 May 2010 05:30:51 +0000 (14:30 +0900)
* c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
for incomplete type.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@158167 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/testsuite/ChangeLog

index d7301b8..0b1d34f 100644 (file)
@@ -1,5 +1,9 @@
 2010-04-09  Jason Merrill  <jason@redhat.com>
 
+       PR c++/42623
+       * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
+       for incomplete type.
+
        PR c++/41788
        * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
        based on a warning flag.
index 7cfea67..f650835 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-09  Jason Merrill  <jason@redhat.com>
+
+       PR c++/42623
+       * g++.dg/template/sizeof13.C: New.
+
 2010-04-09  Kai Tietz  <kai.tietz@onevision.com>
 
        * g++.dg/other/pr35504.C: Add check for thiscall.