"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 3.5.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 |
adanaxisgpl | 1.2.5.dfsg.1-6 | ./Mushcore/MushcoreSingleton.h:86:5: error: use of undeclared identifier 'SingletonPtrSet'
| Log |
|
clementine | 1.2.3+dfsg-2 | type_traits:276:39: error: use of undeclared identifier '__float128'
| Log |
|
galib | 2.4.7-3 | ../../ga/../ga/GA1DArrayGenome.C:225:3: error: use of undeclared identifier 'initializer'
| Log |
753259
|
gnuift | 0.1.14-12.1 | perl-compile-test-program.cc:71:3: error: use of undeclared identifier 'my_perl'
| Log |
|
gstreamer0.10 | 0.10.36-1.4 | gmessages.h:204:11: error: use of undeclared identifier 'g_log_domain_gstreamer'
| Log |
|
icu | 52.1-5 | type_traits:276:39: error: use of undeclared identifier '__float128'
| Log |
|
insserv | 1.14.0-5 | insserv.c:1001:5: error: use of undeclared identifier 'extension'
| Log |
|
meshlab | 1.3.2+dfsg1-2 | src/Geometry.inl:350:10: error: use of undeclared identifier 'printf'
| Log |
|
mysql-workbench | 6.1.7+dfsg-1 | reporting.h:47:30: error: use of undeclared identifier 'Scintilla'
| Log |
|
netxx | 0.3.2-2 | Netbuf.h:116:5: error: use of undeclared identifier 'setp'
| Log |
|
yap | 6.2.2-2 | ../../../../packages/swi-minisat2/C/Solver.C:123:21: error: use of undeclared identifier 'Clause_new'
| Log |
|
11 errors