aboutsummaryrefslogtreecommitdiff
path: root/gcc/c-common.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2010-04-09 11:20:58 -0400
committerJason Merrill <jason@gcc.gnu.org>2010-04-09 11:20:58 -0400
commitcb6addf4a64fca93edee920a0014b73afd80adb1 (patch)
treea2bf79f50c99b47d455df41064956fe68fea2b12 /gcc/c-common.c
parent93e9807aa58db6181185ec664e23022ae2ce6725 (diff)
downloadgcc-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.c2
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
{