Details
-
Type: Bug
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
Description
Current svn head fails to build with gcc-4.7 fill following errors:
libtool: compile: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../include -I../include -I/usr/include -DUSE_AUTOTOOLS -DUNIX -Dunix -D_unix_ -DSWICU_DATA=\"/usr/lib64/sword/1.6.2_icu_49.1.1\" -D_FTPLIB_NO_COMPAT -D_ICU_ -ftemplate-depth-25 -DCURLAVAILABLE -march=native -O2 -pipe -g -O2 -c ../src/mgr/swmgr.cpp -fPIC -DPIC -o .libs/swmgr.o
In file included from ../include/swconfig.h:29:0,
from ../src/mgr/swconfig.cpp:23:
../include/multimapwdef.h: In instantiation of ‘T& sword::multimapwithdefault<Key, T, Compare>::operator[](const Key&) [with Key = sword::SWBuf; T = sword::SWBuf; Compare = std::less<sword::SWBuf>]’:
../src/mgr/swconfig.cpp:155:55: required from here
../include/multimapwdef.h:22:3: erreur: ‘find’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:22:3: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:22:3: note: use ‘this->find’ instead
../include/multimapwdef.h:23:4: erreur: ‘insert’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:23:4: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:23:4: note: use ‘this->insert’ instead
../include/multimapwdef.h:25:23: erreur: ‘find’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
../include/multimapwdef.h:25:23: note: declarations in dependent base ‘std::multimap<sword::SWBuf, sword::SWBuf, std::less<sword::SWBuf>, std::allocator<std::pair<const sword::SWBuf, sword::SWBuf> > >’ are not found by unqualified lookup
../include/multimapwdef.h:25:23: note: use ‘this->find’ instead
For full build log, please see downstream bug:
https://bugs.gentoo.org/show_bug.cgi?id=419505
Attached patch fixes the issue