[cfe-dev] clang for Windows problem in Boost.TypeTraits

Edward Diener eldlistmailingz at tropicsoft.com
Sun Sep 29 20:29:11 PDT 2013


In Boost.TypeTraits this header file line:

  template <class R >
  yes_type is_function_ptr_tester(R (__fastcall*)( ...));

gets an error message from clang in Windows of:

..\..\..\boost/type_traits/detail/is_function_ptr_tester.hpp:52:36: 
error: variadic function cannot use fastcall calling convention

I could not find anything in the C++11 standard about variadic functions 
and calling conventions. Is this a "bug" with clang under Windows or 
should Boost.TypeTraits not try to allow __fastcall in this situation 
when compiling with clang under Windows ?

This occurs in this place in Boost.TypeTraits with clang in Windows 
because _MSC_VER is defined and the code is acceptable with VC++.




More information about the cfe-dev mailing list