These are chat archives for boostorg/hana

12th
Apr 2017
Jason Rice
@ricejasonf
Apr 12 2017 21:17

@ldionne, I made a really small commit to make Hana work on clang c++1z, but I am getting other warnings that probably shouldn't be. (when compiling with -std=c++1z)

/usr/local/src/hana/test/type/is_valid.cpp:32:13: error: control reaches end of non-void lambda
      [-Werror,-Wreturn-type]
        ) { });

I'm very suprised that these don't have the same warnings when using c++14 (or maybe my hack on CMakeLists.txt is throwing something, but it is still weird)

The changes I made are here:
https://github.com/boostorg/hana/compare/develop...ricejasonf:workaround/constexpr_array?expand=1

The problem is that the lambda doesn't return and the compiler throws a warning.
Oh and the workaround was suggested here: https://bugs.llvm.org/show_bug.cgi?id=28337#c3