"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 3.6.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:279:39: error: use of undeclared identifier '__float128'
| Log |
|
galib | 2.4.7-3.1 | ../../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.5 | gmessages.h:204:11: error: use of undeclared identifier 'g_log_domain_gstreamer'
| Log |
|
icu | 52.1-8 | type_traits:279:39: error: use of undeclared identifier '__float128'
| Log |
|
insserv | 1.14.0-5 | insserv.c:1001:5: error: use of undeclared identifier 'extension'
| Log |
|
kadu | 1.3-1 | wchar2.h:291:14: error: use of undeclared identifier '__builtin_va_arg_pack'
| Log |
|
meshlab | 1.3.2+dfsg1-2 | src/Geometry.inl:350:10: error: use of undeclared identifier 'printf'
| Log |
|
mysql-workbench | 6.2.3+dfsg-7 | 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 |
|
syrthes | 4.1.1-dfsg1-5 | syr_cfd_coupling.c:222:33: error: use of undeclared identifier 'EXIT_FAILURE'
| Log |
|
vlc | 2.2.0~rc2-2 | ../include/vlc_atomic.h:418:11: error: use of undeclared identifier '__auto_type'
| Log |
|
yap | 6.2.2-3 | ../../../../packages/swi-minisat2/C/Solver.C:123:21: error: use of undeclared identifier 'Clause_new'
| Log |
|
14 errors