id summary reporter owner description type status milestone component version severity resolution keywords cc 10267 boost::enable_if_c incorrect result on IBM xlC compiler Daniel Beer Peter Dimov "Getting unexpected results when using boost::enable_if_c with boost::is_same on the IBM xlC, while Sun Studio and gcc yield the correct result: Test program test.cpp: {{{ #include #include #include template struct not_bool { static const bool value = false; }; template struct not_bool::value>::type> { static const bool value = true; }; int main(int argc, char **argv) { std::cout << not_bool::value << std::endl; std::cout << not_bool::value << std::endl; return 0; } }}} Using xlC: {{{ $ xlC_r -qversion IBM XL C/C++ for AIX, V11.1 (5724-X13) Version: 11.01.0000.0010 $ xlC_r test.cpp -o test $ ./test 0 0 }}} Using Sun Studio: {{{ $ CC -V CC: Sun C++ 5.10 SunOS_sparc Patch 128228-25 2013/02/20 $ CC test.cpp -o test $ ./test 0 1 }}} Using gcc: {{{ $ g++ -v gcc version 4.4.7 20120313 (Red Hat 4.4.7-3) (GCC) $ g++ test.cpp -o test $ ./test 0 1 }}} " Bugs closed To Be Determined core Boost 1.55.0 Problem wontfix