homebrew gcc-5 fails to find any standard library
Something is wrong with installation. Try updating Homebrew and reinstalling gcc-5. On El Capitan

Target: x86_64-apple-darwin14.4.0

should be 

Target: x86_64-apple-darwin15.0.0

Works fine for me.