diff options
-rw-r--r-- | usr.bin/pcc/cc/ccom/trees.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/usr.bin/pcc/cc/ccom/trees.c b/usr.bin/pcc/cc/ccom/trees.c index 78ecfb0b754..88fd39b4a21 100644 --- a/usr.bin/pcc/cc/ccom/trees.c +++ b/usr.bin/pcc/cc/ccom/trees.c @@ -1,4 +1,4 @@ -/* $Id: trees.c,v 1.5 2007/10/04 19:31:40 otto Exp $ */ +/* $Id: trees.c,v 1.6 2007/10/06 14:34:45 ragge Exp $ */ /* * Copyright (c) 2003 Anders Magnusson (ragge@ludd.luth.se). * All rights reserved. @@ -1611,6 +1611,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. */ |