"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 3.2
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.2-1 | type_traits:256:39: error: use of undeclared identifier '__float128'
| Log |
|
adanaxisgpl | 1.2.5.dfsg.1-5 | ./Mushcore/MushcoreSingleton.h:86:5: error: use of undeclared identifier 'SingletonPtrSet'
| Log |
|
alsa-plugins | 1.0.25-2 | pcm_usb_stream.c:222:73: error: use of undeclared identifier 'MREMAP_MAYMOVE'
| Log |
|
autodir | 0.99.9-7.1 | backup_fork.c:57:15: error: use of undeclared identifier 'PRIO_PROCESS'
| Log |
|
bsnes | 0.088-5 | type_traits:256:39: error: use of undeclared identifier '__float128'
| Log |
|
cupt | 2.5.9 | type_traits:256:39: error: use of undeclared identifier '__float128'
| Log |
|
fakeroot-ng | 0.16-1.1 | ../os.c:292:21: error: use of undeclared identifier 'CLONE_PTRACE'
| Log |
|
galib | 2.4.7-3 | ../../ga/../ga/GA1DArrayGenome.C:225:3: error: use of undeclared identifier 'initializer'
| Log |
753259
|
gamera | 3.3.3-2 | 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 |
|
gpe-soundserver | 0.4-3 | wrapesd.c:19:16: error: use of undeclared identifier 'PRIO_PROCESS'
| Log |
|
insserv | 1.14.0-5 | 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 |
|
mupen64plus-video-glide64 | 1.99.4+37+a1c35b79de0d-3 | ../../src/3dmath.cpp:187:17: error: use of undeclared identifier '__builtin_ia32_loadups'
| Log |
|
ptex-bin | 3.1.11+0.04b-0.2 | splitup.c:65:3: error: use of undeclared identifier 'program_invocation_name'
| Log |
|
python-biom-format | 1.0.0-1 | python-code/support-code/sparsemat_lib.h:17:37: error: use of undeclared identifier 'uint64_t'
| 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 |
|
19 errors