aboutsummaryrefslogtreecommitdiff
path: root/gcc/cobol/cdf.y
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cobol/cdf.y')
-rw-r--r--gcc/cobol/cdf.y5
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cobol/cdf.y b/gcc/cobol/cdf.y
index 12d11e7..6392f89 100644
--- a/gcc/cobol/cdf.y
+++ b/gcc/cobol/cdf.y
@@ -30,6 +30,9 @@
%{
#include "cobol-system.h"
+#include "coretypes.h"
+#include "tree.h"
+#undef yy_flex_debug
#include "../../libgcobol/ec.h"
#include "../../libgcobol/common-defs.h"
#include "util.h"
@@ -951,7 +954,7 @@ verify_integer( const YDFLTYPE& loc, const cdfval_base_t& val ) {
return true;
}
-cdfval_base_t&
+const cdfval_base_t&
cdfval_base_t::operator()( const YDFLTYPE& loc ) {
static cdfval_t zero(0);
return verify_integer(loc, *this) ? *this : zero;