summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--usr.bin/pcc/ccom/trees.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/pcc/ccom/trees.c b/usr.bin/pcc/ccom/trees.c
index 36b12e7411c..b2df2733ebe 100644
--- a/usr.bin/pcc/ccom/trees.c
+++ b/usr.bin/pcc/ccom/trees.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: trees.c,v 1.3 2007/10/08 18:22:12 otto Exp $ */
+/* $OpenBSD: trees.c,v 1.4 2007/10/08 18:26:29 otto Exp $ */
/*
* Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se).
* All rights reserved.
@@ -1626,6 +1626,9 @@ doszof(NODE *p)
TWORD ty;
NODE *rv;
+ if (p->n_op == FLD)
+ uerror("can't apply sizeof to bit-field");
+
/*
* Arrays may be dynamic, may need to make computations.
*/