#include <sstream>
#include <string>

using namespace std;

int main(void){
stringstream ss;
string str;
ss.str("test1 test2 test3");
// ss >> str; //←この行のコメントを外すと、コンパイルは通るが実行するとセグメンテーションフォルト
return 0;
}

>gcc --version
2.96

バグですか?