#include <list>
#include <string>

namespace Filesystem
{
    extern std::list<std::string> g_SearchPaths;
    extern void AddSource(std::string Path);
}

namespace Filesystem
{
    std::list<std::string> g_SearchPaths;
 
    void AddSource(std::string Path)
    {
        g_SearchPaths.push_back(Path); // Löst die Zugriffsverletzung aus
    }
}

int main()
{
	Filesystem::AddSource("foo");
	return 0;
}