diff --git a/src/SymbolTable.hh b/src/SymbolTable.hh index 4cdc103d38493ab8ef0f1e81a5969349d43909e2..42a54a07f88d681b5038d40f3e4737c07488e283 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) {