diff --git a/flang/lib/semantics/semantics.h b/flang/lib/semantics/semantics.h index abe4be15184c..10ec449cd006 100644 --- a/flang/lib/semantics/semantics.h +++ b/flang/lib/semantics/semantics.h @@ -19,6 +19,7 @@ #include "../parser/message.h" #include #include +#include namespace Fortran::parser { struct Program; @@ -28,7 +29,6 @@ namespace Fortran::semantics { class Semantics { public: - Semantics() { directories_.push_back("."s); } const parser::Messages &messages() const { return messages_; } Semantics &set_searchDirectories(const std::vector &); Semantics &set_moduleDirectory(const std::string &); @@ -38,10 +38,11 @@ public: private: Scope globalScope_; - std::vector directories_; + std::vector directories_{"."s}; std::string moduleDirectory_{"."s}; parser::Messages messages_; }; + } // namespace Fortran::semantics #endif