Package: mimetic / 0.9.7-3

gcc-4.7.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Description: mimetic fails to build with gcc-4.7 with:
 | In file included from datetime.cxx:11:0:
 | ../../mimetic/tokenizer.h: In instantiation of 'mimetic::ContTokenizer<Container>::ContTokenizer(const Container*, const
 | DelimCont&) [with DelimCont = char [3]; Container = std::basic_string<char>]':
 | datetime.cxx:266:42:   required from here
 | ../../mimetic/tokenizer.h:150:9: error: 'setDelimList' was not declared in this scope, and no declarations were found by
 | argument-dependent lookup at the point of instantiation [-fpermissive]
 | ../../mimetic/tokenizer.h:150:9: note: declarations in dependent base 'mimetic::ItTokenizer<__gnu_cxx::__normal_iterator<const
 | char*, std::basic_string<char> >, char>' are not found by unqualified lookup
 | ../../mimetic/tokenizer.h:150:9: note: use 'this->setDelimList' instead
 | make[5]: *** [datetime.lo] Error 1
 .
 Following gcc's advice by using 'this->setDelimList' seems to work under
 gcc-4.6 and gcc-4.7.
 .
 Cf. also http://gcc.gnu.org/gcc-4.7/porting_to.html -> C++ language issues ->
 Name lookup changes
Origin: vendor
Bug-Debian: http://bugs.debian.org/667278
Forwarded: yes, private mail
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2012-04-04

--- a/mimetic/tokenizer.h
+++ b/mimetic/tokenizer.h
@@ -147,7 +147,7 @@
     ContTokenizer(const Container* cont, const DelimCont& delims)
     : ItTokenizer<const_iterator,value_type>(cont->begin(), cont->end())
     {
-        setDelimList(delims);
+        this->setDelimList(delims);
     }
     void setSource(const Container* cont)
     {