diff --git a/compiler2/ttcn3/BerAST.cc b/compiler2/ttcn3/BerAST.cc
index b78d6a0cbfe4b5ecffbc2bf27a094207d6bc1ab0..68c5a8726609808ec8e6f5452c3f9e8a6bcaa1e5 100644
--- a/compiler2/ttcn3/BerAST.cc
+++ b/compiler2/ttcn3/BerAST.cc
@@ -12,12 +12,12 @@
  ******************************************************************************/
 #include  "BerAST.hh"
 
-const char* BerAST::encode_string[] = {
+const char* BerAST::encode_string[2] = {
     "BER_ENCODE_CER",
     "BER_ENCODE_DER"
 };
 
-const char* BerAST::decode_string[] = {
+const char* BerAST::decode_string[5] = {
     "BER_ACCEPT_SHORT",
     "BER_ACCEPT_LONG",
     "BER_ACCEPT_INDEFINITE",
diff --git a/compiler2/ttcn3/BerAST.hh b/compiler2/ttcn3/BerAST.hh
index c4fb2b9f2a98ff168e962c7cdca5df8aa1cf29ea..154730db47c7129fd80ae221da0d866281e1e8ab 100644
--- a/compiler2/ttcn3/BerAST.hh
+++ b/compiler2/ttcn3/BerAST.hh
@@ -16,8 +16,8 @@
 
 
 class BerAST {
-  static const char* encode_string[];
-  static const char* decode_string[];
+  static const char* encode_string[2];
+  static const char* decode_string[5];
 public:
 
   enum ber_encode_t {