"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 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 |
abiword | 3.0.2-3 | gr_UnixCairoGraphics.cpp:183:37: error: use of undeclared identifier 'nullptr'
| Log |
|
adanaxisgpl | 1.2.5.dfsg.1-6 | ./Mushcore/MushcoreSingleton.h:86:5: error: use of undeclared identifier 'SingletonPtrSet'
| Log |
|
android-platform-dalvik | 7.0.0+r33-1 | debian/additionalSrc/dmtracedump/tracedump.cc:252:14: error: use of undeclared identifier 'nullptr'
| Log |
|
gelemental | 1.2.0-10 | refptr.h:82:70: error: use of undeclared identifier 'nullptr'
| Log |
|
gigedit | 1.0.0-3 | refptr.h:82:70: error: use of undeclared identifier 'nullptr'
| Log |
|
gnome-color-chooser | 0.2.5-1.1 | refptr.h:82:70: error: use of undeclared identifier 'nullptr'
| Log |
|
gnuift | 0.1.14+ds-1 | perl-compile-test-program.cc:71:3: error: use of undeclared identifier 'my_perl'
| Log |
|
gpick | 0.2.5+git20161221-1 | source/gtk/ColorCell.cpp:47:84: error: use of undeclared identifier 'nullptr'
| Log |
|
gtkglextmm | 1.2.0-8 | refptr.h:82:70: error: use of undeclared identifier 'nullptr'
| Log |
|
libpwiz | 3.0.10827-3 | pwiz/analysis/demux/IPrecursorMaskCodec.hpp:87:76: error: use of undeclared identifier 'stof'; did you mean 'atof'?
| Log |
758322
|
log4cpp | 1.1.1-3 | PThreads.cpp:15:13: error: use of undeclared identifier 'free'
| Log |
|
lostirc | 0.4.6-4.2 | refptr.h:82:70: error: use of undeclared identifier 'nullptr'
| Log |
|
meshlab | 1.3.2+dfsg1-4 | ../../../../vcglib/vcg/space/deprecated_point.h:167:30: error: use of undeclared identifier 'static_assert'; did you mean 'static_cast'?
| Log |
|
moonshot-gss-eap | 0.9.5-3 | ddf.h:120:32: error: use of undeclared identifier 'nullptr'
| Log |
|
mozc | 2.20.2673.102+dfsg-1 | ../../base/mutex.cc:165:3: error: use of undeclared identifier 'static_assert'; did you mean 'static_cast'?
| Log |
|
netxx | 0.3.2-2 | Netbuf.h:116:5: error: use of undeclared identifier 'setp'
| Log |
|
nordugrid-arc | 5.3.2-2 | refptr.h:82:70: error: use of undeclared identifier 'nullptr'
| Log |
|
open-invaders | 0.3-4.3 | init.cc:643:10: error: use of undeclared identifier 'nullptr'
| Log |
|
pcb2gcode | 1.1.4-git20120902-1.1 | refptr.h:82:70: error: use of undeclared identifier 'nullptr'
| Log |
|
postal | 0.75 | ./smtp.h:28:58: error: use of undeclared identifier 'hash'
| Log |
|
spaced | 1.0.2+dfsg-1 | ./sort.h:372:10: error: use of undeclared identifier 'omp_get_thread_num'
| Log |
|
taglib | 1.11.1+dfsg.1-0.1 | tstring.cpp:68:23: error: use of undeclared identifier 'U'
| Log |
|
torcs | 1.3.7+dfsg-4 | OpenALMusicPlayer.cpp:164:22: error: use of undeclared identifier 'nullptr'
| Log |
|
vifm | 0.9-1 | abbrevs/suite.c:5:1: error: use of undeclared identifier 'stic_setup_once_func'
| Log |
|
24 errors