diff --git a/src/SymbolTable.hh b/src/SymbolTable.hh index 83476e55cd4fbd3667bf9693698cfa24ea20c7d3..f4995ca1a3bedd66b6f75f26060efad3dabad009 100644 --- a/src/SymbolTable.hh +++ b/src/SymbolTable.hh @@ -198,11 +198,12 @@ public: //! Thrown when trying to declare a symbol twice class AlreadyDeclaredException : public std::exception { - public: - //! Was the previous declaration done with the same symbol type ? - const bool same_type; + public: //! Symbol name const string name; + //! Was the previous declaration done with the same symbol type ? + const bool same_type; + AlreadyDeclaredException(string name_arg, bool same_type_arg) : name(name_arg), same_type(same_type_arg) {