id summary reporter owner description type status milestone component version severity resolution keywords cc 11822 nvcc can not compile BOOST_AUTO_TEST_CASE_TEMPLATE e.zenker@… Gennadiy Rozental "Compiling a test suite for testing CUDA code with nvcc with CUDA 7.5 and gcc 4.9. and leads to the following error: {{{ /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/c++/bits/basic_string.h(444): error: identifier ""std::basic_string, std::allocator >::_Rep::_S_empty_rep_storage"" is undefined in device code /usr/include/boost/test/tree/test_case_template.hpp(84): error: identifier ""std::basic_string, std::allocator >::_Rep::_S_terminal"" is undefined in device code /usr/include/boost/test/tree/test_case_template.hpp(86): error: identifier ""_ZTIi"" is undefined /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/c++/bits/basic_string.h(444): error: identifier ""std::basic_string, std::allocator >::_Rep::_S_empty_rep_storage"" is undefined in device code /usr/include/boost/test/tree/test_case_template.hpp(84): error: identifier ""std::basic_string, std::allocator >::_Rep::_S_terminal"" is undefined in device code /usr/include/boost/test/tree/test_case_template.hpp(86): error: identifier ""_ZTIl"" is undefined /usr/lib/gcc/x86_64-unknown-linux-gnu/4.9.3/include/c++/bits/basic_string.h(444): error: identifier ""std::basic_string, std::allocator >::_Rep::_S_empty_rep_storage"" is undefined in device code /usr/include/boost/test/tree/test_case_template.hpp(84): error: identifier ""std::basic_string, std::allocator >::_Rep::_S_terminal"" is undefined in device code }}} The test suite is more or less equal to the simple test in the boost.test documentation for templated tests. Here a snippet: {{{ #define BOOST_TEST_DYN_LINK #define BOOST_TEST_MODULE ""Tests"" #include #include typedef boost::mpl::list test_types; BOOST_AUTO_TEST_SUITE( template_test ) BOOST_AUTO_TEST_CASE_TEMPLATE( my_test, T, test_types ) { BOOST_CHECK_EQUAL( sizeof(T), (unsigned)4 ); } BOOST_AUTO_TEST_SUITE_END() }}} " Bugs closed To Be Determined test Boost 1.59.0 Problem invalid nvcc test template