"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 3.1
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 |
acovea | 5.1.1-2.1 | ./acovea.h:549:25: error: use of undeclared identifier 'm_fitness'; did you mean 'fitness'?
| Log |
|
actionaz | 3.4.1-1.1 | type_traits:256:39: error: use of undeclared identifier '__float128'
| Log |
|
adanaxisgpl | 1.2.5.dfsg.1-4.1 | ./Mushcore/MushcoreSingleton.h:86:5: error: use of undeclared identifier 'SingletonPtrSet'
| Log |
|
bsnes | 0.088-3 | type_traits:256: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
|
gamera | 3.3.3-1 | GA1DArrayGenome.C:225:3: error: use of undeclared identifier 'initializer'
| Log |
|
gnuift | 0.1.14-12 | perl-compile-test-program.cc:71:3: error: use of undeclared identifier 'my_perl'
| Log |
|
imview | 1.1.9c-8 | ./socketstream.hxx:206:17: error: use of undeclared identifier 'setg'
| Log |
|
insserv | 1.14.0-3 | insserv.c:1001:5: error: use of undeclared identifier 'extension'
| Log |
|
kdenlive | 0.9.2-2 | src.c:28:9: error: use of undeclared identifier 'uint'; did you mean 'int'?
| Log |
|
kompozer | 1:0.8~b3.dfsg.1-0.1 | nsClassHashtable.h:101:5: error: use of undeclared identifier 'GetEntry'
| Log |
|
mkvtoolnix | 5.6.0-1 | type_traits:256:39: error: use of undeclared identifier '__float128'
| Log |
|
mupen64plus-video-glide64 | 1.99.4+37+a1c35b79de0d-3 | ../../src/3dmath.cpp:187:17: error: use of undeclared identifier '__builtin_ia32_loadups'
| Log |
|
pacemaker-mgmt | 2.0.0+hg1141-2.1 | extract_define.HA_LIBDIR.22149.c:3:48: error: use of undeclared identifier 'HA_LIBDIR'
| Log |
|
pokerth | 0.9.4-2 | type_traits:256:39: error: use of undeclared identifier '__float128'
| Log |
|
ptex-bin | 3.1.11+0.04b-0.2 | splitup.c:65:3: error: use of undeclared identifier 'program_invocation_name'
| Log |
|
qcake | 0.7.2-2 | shader.cpp:70:9: error: use of undeclared identifier 'glCreateShader'
| Log |
|
rtfilter | 1.1-4 | ./probesimd.h:28:55: error: use of undeclared identifier 'bit_SSE'
| Log |
|
scim-skk | 0.5.2-7 | scim_skk_setup_dictionaries.cpp:304:29: error: use of undeclared identifier 'gtk_file_selection_new'
| Log |
|
scim-unikey | 0.3.1+debian-3 | unikey_setup.cpp:27:24: error: use of undeclared identifier 'GTK_OBJECT'
| Log |
|
20 errors