"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 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 |
|
attal | 1.0~rc2-2 | math.h:697:47: error: use of undeclared identifier '__issignalingf'; did you mean '__issignaling'?
| Log |
|
ext3grep | 0.10.2-3 | ./ext3.h:120:40: error: use of undeclared identifier 'i_dir_acl'; did you mean 'dir_acl'?
| Log |
755542
|
fmit | 1.0.0-1 | Music.h:288:16: error: use of undeclared identifier 'pow10'
| Log |
|
freefem++ | 3.47+dfsg1-2 | AFunction.cpp:43:36: error: use of undeclared identifier 'isnan'
| Log |
|
gauche-gtk | 0.6+git20160927-1 | glgdGraph.c:907:30: error: use of undeclared identifier 'HUGE'
| Log |
|
gnuift | 0.1.14+ds-1 | perl-compile-test-program.cc:71:3: error: use of undeclared identifier 'my_perl'
| Log |
|
kadu | 4.1-1.1 | wchar2.h:291:14: error: use of undeclared identifier '__builtin_va_arg_pack'
| Log |
|
kcov | 25+dfsg-1 | ptrace.cc:337:17: error: use of undeclared identifier 'SIGUNUSED'
| Log |
|
netxx | 0.3.2-2 | Netbuf.h:116:5: error: use of undeclared identifier 'setp'
| Log |
|
ngetty | 1.1-3 | ngetty.c:184:3: error: use of undeclared identifier '_NSIG_WORDS'
| Log |
|
pymssql | 2.1.3+dfsg-1 | _mssql.c:21102:15: error: use of undeclared identifier 'DBVERSION_80'
| Log |
|
sciscipy | 1.0.1-2 | util.c:27:38: error: use of undeclared identifier 'pvApiCtx'
| Log |
|
spaced | 1.0.2+dfsg-1 | ./sort.h:372:10: error: use of undeclared identifier 'omp_get_thread_num'
| Log |
|
sqsh | 2.1.7-4 | cmd_connect.c:809:23: error: use of undeclared identifier 'CS_TDS_80'
| Log |
|
vdr-plugin-infosatepg | 0.0.12-6 | infosatepg.cpp:97:14: error: use of undeclared identifier 'Channels'; did you mean 'ChannelID'?
| Log |
|
vdr-plugin-remoteosd | 1.0.0-5 | menu.c:72:23: error: use of undeclared identifier 'Channels'
| Log |
|
vifm | 0.9.1-1 | abbrevs/suite.c:5:1: error: use of undeclared identifier 'stic_setup_once_func'
| Log |
|
wget2 | 0.0.20170806-1 | ssl_gnutls.c:1265:132: error: use of undeclared identifier 'writev'
| Log |
|
19 errors