"Unqualified lookup into dependent bases of class templates" build failure(s)
clang 3.3
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 |
actionaz | 3.6.2-1 | type_traits:269: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 |
|
cupt | 2.5.10 | type_traits:269: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-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 |
|
gource | 0.40-1 | type_traits:269:39: error: use of undeclared identifier '__float128'
| Log |
|
insserv | 1.14.0-5 | insserv.c:1001:5: error: use of undeclared identifier 'extension'
| Log |
|
kiwix | 0.9~beta6.8-1 | type_traits:269:39: error: use of undeclared identifier '__float128'
| Log |
|
kmymoney | 4.6.3-2 | mymoneydatabasemgrtest.cpp:92:36: error: use of undeclared identifier 'geteuid'
| Log |
|
libexplain | 0.52.D002-1 | libexplain/buffer/v4l2_buf_flags.c:43:34: error: use of undeclared identifier 'V4L2_BUF_FLAG_INPUT'
| Log |
|
libwebcam | 0.2.2-1 | libwebcam.c:2097:8: error: use of undeclared identifier 'V4L2_CID_HCENTER'
| Log |
|
mozzemberek | 0.1.5-1 | nsISupportsImpl.h:149:24: error: use of undeclared identifier 'nullptr'
| Log |
|
mupen64plus-video-glide64 | 2.0.0-1 | ../../src/3dmath.cpp:189:17: error: use of undeclared identifier '__builtin_ia32_loadups'
| 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 |
|
sbcl | 2:1.0.57.0-2 | x86-64-linux-os.c:93:9: error: use of undeclared identifier 'REG_RAX'
| Log |
|
spek | 0.8.2-1 | type_traits:269:39: error: use of undeclared identifier '__float128'
| Log |
|
yap | 6.2.2-1 | ../../../../packages/swi-minisat2/C/Solver.C:123:21: error: use of undeclared identifier 'Clause_new'
| Log |
|
20 errors