Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

clang-9 fails to compile madness: error: non-type template argument is not a constant expression #342

Open
yurivict opened this issue May 1, 2020 · 2 comments

Comments

@yurivict
Copy link

yurivict commented May 1, 2020

/usr/include/c++/v1/tuple:1388:39: error: non-type template argument is not a constant expression
        typename __make_tuple_indices<tuple_size_v<remove_reference_t<_Tuple>>>::type{})
                                      ^
/usr/include/c++/v1/tuple:1384:26: note: in instantiation of exception specification for 'apply<madness::SeparatedConvolution<double, 3> &, madness::Function<std::__1::complex<double>, 3> &>' requested here
constexpr decltype(auto) apply(_Fn && __f, _Tuple && __t)
                         ^
/usr/ports/science/madness/work/madness-e87fe4483e09bdecb60a38e8ce65b9aa56e0b27e/src/madness/mra/testperiodic.cc:261:36: note: in instantiation of function template specialization 'std::__1::apply<madness::SeparatedConvolution<double, 3> &, madness::Function<std::__1::complex<double>, 3> &>' requested here
  Function<double_complex,3> opf = apply(op,f);
                                   ^
/usr/ports/science/madness/work/madness-e87fe4483e09bdecb60a38e8ce65b9aa56e0b27e/src/madness/mra/testperiodic.cc:320:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
    catch (const char* s) {
                 ^
/usr/ports/science/madness/work/madness-e87fe4483e09bdecb60a38e8ce65b9aa56e0b27e/src/madness/mra/testperiodic.cc:316:12: note: for type 'char *'
    catch (char* s) {
           ^
5 warnings and 2 errors generated.
@robertjharrison
Copy link
Contributor

robertjharrison commented May 1, 2020 via email

@yurivict
Copy link
Author

yurivict commented May 1, 2020

Here is the version info:

$ clang++ --version
FreeBSD clang version 9.0.1 ([email protected]:llvm/llvm-project.git c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants