I still have trouble.
I have  a programe which also link libtorch with another lib compiles using gcc5, but we got no problem.
beside we also built with opencv lib which compiles also using gcc5 and new ABI. they can co-exist…
the only situation I got compile error is in ROS…