You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1 error generated.
/home/dav/Downloads/cling_2018-01-27_fedora27/bin/../libexec/c++-analyzer -g -std=c++11 -DOMP_COMPILE_FOR_PARALLEL -fopenmp -D'GIT_REVISION=3d0c1a0' -I include -c -o build/catchmentmodel/LSDGrainMatrix.o src/catchmentmodel/LSDGrainMatrix.cpp
In file included from src/catchmentmodel/LSDGrainMatrix.cpp:39:
In file included from include/catchmentmodel/LSDGrainMatrix.hpp:27:
In file included from include/TNT/tnt.h:55:
include/TNT/tnt_sparse_matrix_csr.h:97:3: error: no matching constructor for initialization of 'Array1D<int>'
rowptr_(M, r), colind_(nz, c), dim1_(M), dim2_(N) {}
^ ~~~~
Then a bunch of notes/suggestions from clang:
include/TNT/tnt_array1d.h:63:11: note: candidate constructor not viable: no known conversion from 'const int *' to 'const int' for 2nd argument; dereference the argument with *
Array1D(int n, const T &a);
^
include/TNT/tnt_array1d.h:64:11: note: candidate constructor not viable: 2nd argument ('const int *') would lose const qualifier
Array1D(int n, T *a);
^
include/TNT/tnt_array1d.h:62:11: note: candidate constructor not viable: requires single argument 'n', but 2 arguments were provided
explicit Array1D(int n);
^
include/TNT/tnt_array1d.h:65:14: note: candidate constructor not viable: requires single argument 'A', but 2 arguments were provided
inline Array1D(const Array1D &A);
^
include/TNT/tnt_array1d.h:61:11: note: candidate constructor not viable: requires 0 arguments, but 2 were provided
Array1D();
^
(Repeats for every include of tnt.h)
The text was updated successfully, but these errors were encountered:
Managed to reproduce a bug reported by @fclubb using the clang-static analyzer (so I assume they were trying to use clang to compile(?)
Anyway clang (version?) does not like this:
include/TNT/tnt_sparse_matrix_csr.h:97
The full error is this:
Then a bunch of notes/suggestions from clang:
(Repeats for every include of tnt.h)
The text was updated successfully, but these errors were encountered: