summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2004-06-03 14:08:06 +0000
committerOliver Bolte <obo@openoffice.org>2004-06-03 14:08:06 +0000
commit2b10b8525b4d94d79d8667da1ff4e7c7f2bb20f7 (patch)
treeec651cf271246adf59efa417c2b31104b03750ae /idlc
parenta0922f62b581af2923d7ff59e4143e1028a2279a (diff)
INTEGRATION: CWS sb18 (1.4.12); FILE MERGED
2004/05/19 08:56:07 sb 1.4.12.1: #i21150# Check that an unpublished entity is not used in the declaration of a published entity.
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/astexpression.cxx8
1 files changed, 6 insertions, 2 deletions
diff --git a/idlc/source/astexpression.cxx b/idlc/source/astexpression.cxx
index 707d4f3abaee..c79c609f1a7c 100644
--- a/idlc/source/astexpression.cxx
+++ b/idlc/source/astexpression.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: astexpression.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: hr $ $Date: 2004-02-04 13:23:08 $
+ * last change: $Author: obo $ $Date: 2004-06-03 15:08:06 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -1493,6 +1493,10 @@ AstExprValue* AstExpression::eval_symbol(EvalKind ek)
idlc()->error()->constantExpected(pDecl, *m_pSymbolicName);
return NULL;
}
+ if (!idlc()->error()->checkPublished(pDecl))
+ {
+ return NULL;
+ }
/*
* OK, now evaluate the constant we just got, to produce its value
*/