I think the issue is the std::string object is going out of scope in the
tests. The tests are like this:

g_assert_cmpstr (std::string ("scheme_no_spaces_in_uris"), ==,
StringUtils::MangleUri("scheme:no spaces in uris").c_str ());

Inside the g_assert_cmpstr macro the two strings are stored in
variables. Nothing is left holding the result of MangleUri () so the
result from c_str () is no longer valid. I guess GCC 5.1 is more
agressive in destroying the std:string than it used to be?

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1475623

Title:
  zeitgeist ftbfs with GCC 5

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zeitgeist/+bug/1475623/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to