diff options
author | Jason Merrill <jason@redhat.com> | 2010-04-09 11:20:58 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2010-04-09 11:20:58 -0400 |
commit | cb6addf4a64fca93edee920a0014b73afd80adb1 (patch) | |
tree | a2bf79f50c99b47d455df41064956fe68fea2b12 /gcc/c-common.c | |
parent | 93e9807aa58db6181185ec664e23022ae2ce6725 (diff) | |
download | gcc-cb6addf4a64fca93edee920a0014b73afd80adb1.zip gcc-cb6addf4a64fca93edee920a0014b73afd80adb1.tar.gz gcc-cb6addf4a64fca93edee920a0014b73afd80adb1.tar.bz2 |
re PR c++/42623 ([C++0x] Function template default arguments: Invalid expressions are allowed)
PR c++/42623
* c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
for incomplete type.
From-SVN: r158167
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index 32dc21e..5772b83 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -4390,7 +4390,7 @@ c_sizeof_or_alignof_type (location_t loc, if (complain) error_at (loc, "invalid application of %qs to incomplete type %qT ", op_name, type); - value = size_zero_node; + return error_mark_node; } else { |