clang_20046.cpp 689 B

1234567891011121314151617181920
  1. // Copyright Louis Dionne 2013-2017
  2. // Distributed under the Boost Software License, Version 1.0.
  3. // (See accompanying file LICENSE.md or copy at http://boost.org/LICENSE_1_0.txt)
  4. #include <boost/hana/type.hpp>
  5. namespace hana = boost::hana;
  6. template <typename ...> struct F { struct type; };
  7. struct M { template <typename ...> struct apply { struct type; }; };
  8. struct T;
  9. int main() {
  10. // See http://llvm.org/bugs/show_bug.cgi?id=20046
  11. [](auto) { return hana::trait<F>; }(1);
  12. [](auto) { return hana::type_c<T>; }(1);
  13. [](auto) { return hana::template_<F>; }(1);
  14. [](auto) { return hana::metafunction<F>; }(1);
  15. [](auto) { return hana::metafunction_class<M>; }(1);
  16. }