diff --git a/alib2data/src/regexp/formal/FormalRegExpElement.h b/alib2data/src/regexp/formal/FormalRegExpElement.h
index 89f0fc24b16e7ce3d7cf281cf62ff4c50623bdd7..0f16158382758b28d4ae695d18252dceaaa74e5d 100644
--- a/alib2data/src/regexp/formal/FormalRegExpElement.h
+++ b/alib2data/src/regexp/formal/FormalRegExpElement.h
@@ -24,7 +24,6 @@ class FormalRegExpEmpty;
 class FormalRegExpEpsilon;
 
 class UnboundedRegExpElement;
-class FormalRegExpElement;
 
 class FormalRegExpElementVisitor {
 public:
diff --git a/alib2data/src/regexp/unbounded/UnboundedRegExpElement.h b/alib2data/src/regexp/unbounded/UnboundedRegExpElement.h
index b472d577612b88137029ea948f9c615f205d2da5..75eb61666dc9c2715e25ec49a8e50325a0783b9c 100644
--- a/alib2data/src/regexp/unbounded/UnboundedRegExpElement.h
+++ b/alib2data/src/regexp/unbounded/UnboundedRegExpElement.h
@@ -24,7 +24,6 @@ class UnboundedRegExpEmpty;
 class UnboundedRegExpEpsilon;
 
 class FormalRegExpElement;
-class UnboundedRegExpElement;
 
 class UnboundedRegExpElementVisitor {
 public:
@@ -85,7 +84,7 @@ public:
 	friend class UnboundedRegExpAlternation;
 	friend class UnboundedRegExpConcatenation;
 	friend class UnboundedRegExpIteration;
-	friend class FromalRegExpSymbol;
+	friend class UnboundedRegExpSymbol;
 	friend class UnboundedRegExpEmpty;
 	friend class UnboundedRegExpEpsilon;
 };