diff --git a/src/DataTree.hh b/src/DataTree.hh
index 1319fee2247a133e86a3a209b5ab9c79ef79afbc..b641613902fa731c43c271de99efc0c9515c8ee0 100644
--- a/src/DataTree.hh
+++ b/src/DataTree.hh
@@ -289,10 +289,9 @@ public:
   //! Raised when a trend is declared twice
   class TrendException : public std::exception
   {
-  private: 
-    const string name;
 
   public:
+    const string name;
     TrendException(string name_arg) : name(name_arg) {}
   };
 
diff --git a/src/SymbolTable.hh b/src/SymbolTable.hh
index cce17027fccce1644df4f41f7c86f33a8bcdd02f..cc3299a5a5905c2ff03e411536d7251a86dfa50a 100644
--- a/src/SymbolTable.hh
+++ b/src/SymbolTable.hh
@@ -194,13 +194,12 @@ public:
   //! Thrown when trying to declare a symbol twice
   class AlreadyDeclaredException : public std::exception
   {
-  private: 
+  public:
     //! Symbol name
     const string name;
     //! Was the previous declaration done with the same symbol type ?
     const bool same_type;
 
-  public:
     AlreadyDeclaredException(string name_arg, bool same_type_arg) : name(name_arg),
 								    same_type(same_type_arg)
     {