"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 13.0.0
This problem is that g++ accepts code which should be refused. g++ is doing an unqualified lookup into dependent bases of class templates. See the
official website.
The attached code clearly shows the issue and the fix:
#include <vector>
template class A: public std::vector {
public:
void del() {
// The right syntax is:
// this->erase(std::vector::begin());
erase(std::vector::begin());
}
};
void foo() {
A B;
B.del();
}
Package | Version | Supposed error message | Full log |
Bug report |
gmap | 2021-08-25+ds-1 | oligoindex_hr.c:10010:16: error: use of undeclared identifier 'mod_37_bit_position'
| Log |
|
1 errors