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 00:54:17 +0000 (09:54 +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 74eb521..2b3338e 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 51895ee..ea156f6 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.