<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to bugs</title><link>https://sourceforge.net/p/fastformat/bugs/</link><description>Recent changes to bugs</description><atom:link href="https://sourceforge.net/p/fastformat/bugs/feed.rss" rel="self"/><language>en</language><lastBuildDate>Tue, 17 Jan 2012 16:29:23 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/fastformat/bugs/feed.rss" rel="self" type="application/rss+xml"/><item><title>int64_t issues on 64 bit system</title><link>https://sourceforge.net/p/fastformat/bugs/97/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;br /&gt;
On my 64 bit system (gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)) , int64_t is typedefed to "long int". &lt;/p&gt;
&lt;p&gt;As a result, fast format calls this integer_shim:&lt;/p&gt;
&lt;p&gt;inline ximpl_fast_integers::integer_shim&amp;lt;12&amp;gt; filter_type(&lt;br /&gt;
signed long value&lt;br /&gt;
,   signed long const*&lt;br /&gt;
,   ff_char_t const volatile*&lt;br /&gt;
)&lt;br /&gt;
{&lt;br /&gt;
ximpl_fast_integers::integer_shim&amp;lt;12&amp;gt; r;&lt;/p&gt;
&lt;p&gt;r.assign(stlsoft::integer_to_string(r.buff, STLSOFT_NUM_ELEMENTS(r.buff), value, r.len));&lt;/p&gt;
&lt;p&gt;return r;&lt;br /&gt;
}&lt;/p&gt;
&lt;p&gt;which is incorrect!&lt;/p&gt;
&lt;p&gt;Is there a good reason to NOT to include &amp;lt;stdint.h&amp;gt; and be explicit about the integer type sizes?&lt;br /&gt;
ie: use int64_t instead of "signed long"?&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abe Bachrach</dc:creator><pubDate>Tue, 17 Jan 2012 16:29:23 -0000</pubDate><guid>https://sourceforge.net196363ee0ba5ae9602c3df60e950ce6bab4a9d17</guid></item><item><title>header include ordering error with fastformat.hpp</title><link>https://sourceforge.net/p/fastformat/bugs/96/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm seeing an error if I include fastformat/fastformat.hpp after fastformat/sinks/stringstream.hpp&lt;/p&gt;
&lt;p&gt;ie:&lt;br /&gt;
this works:&lt;br /&gt;
#include &amp;lt;fastformat/sinks/stringstream.hpp&amp;gt;&lt;br /&gt;
#include &amp;lt;fastformat/fastformat.hpp&amp;gt;&lt;/p&gt;
&lt;p&gt;this doesn't:&lt;br /&gt;
#include &amp;lt;fastformat/fastformat.hpp&amp;gt;&lt;br /&gt;
#include &amp;lt;fastformat/sinks/stringstream.hpp&amp;gt;&lt;/p&gt;
&lt;p&gt;I get the following compilation error&lt;/p&gt;
&lt;p&gt;In file included from /tmp/build/include/fastformat/fastformat.hpp:193:0,&lt;br /&gt;
from /tmp/fastformat-util/src/test/ff_test.cpp:30:&lt;br /&gt;
/tmp/build/include/fastformat/shims/action/fmt_slices/generic_string.hpp: In function ‘S&amp;amp; fastformat::sinks::fmt_slices(S&amp;amp;, int, size_t, size_t, const fastformat::ff_string_slice_t*) [with S = std::basic_stringstream&amp;lt;char&amp;gt;, size_t = long unsigned int]’:&lt;br /&gt;
/tmp/build/include/fastformat/internal/generated/helper_functions.hpp:59:9:   instantiated from ‘S&amp;amp; fastformat::internal::helpers::fmt_inner_helper_1(S&amp;amp;, int, const fastformat::ff_format_element_t*, size_t, size_t, const ff_char_t*, size_t) [with S = std::basic_stringstream&amp;lt;char&amp;gt;, size_t = long unsigned int, fastformat::ff_char_t = char]’&lt;br /&gt;
/tmp/build/include/fastformat/internal/generated/helper_functions.hpp:70:38:   instantiated from ‘S&amp;amp; fastformat::internal::helpers::fmt_outer_helper_1(S&amp;amp;, int, const fastformat::ff_format_element_t*, size_t, size_t, const A0&amp;amp;) [with S = std::basic_stringstream&amp;lt;char&amp;gt;, A0 = char [5], size_t = long unsigned int]’&lt;br /&gt;
/tmp/build/include/fastformat/internal/generated/api_functions.hpp:111:90:   instantiated from ‘S&amp;amp; fastformat::fmtln(S&amp;amp;, const F&amp;amp;, const A0&amp;amp;) [with S = std::basic_stringstream&amp;lt;char&amp;gt;, F = char [33], A0 = char [5]]’&lt;br /&gt;
/tmp/fastformat-util/src/test/ff_test.cpp:56:59:   instantiated from here&lt;br /&gt;
/tmp/build/include/fastformat/shims/action/fmt_slices/generic_string.hpp:118:5: error: ‘struct std::basic_stringstream&amp;lt;char&amp;gt;’ has no member named ‘reserve’&lt;br /&gt;
/tmp/build/include/fastformat/shims/action/fmt_slices/generic_string.hpp:118:5: error: ‘struct std::basic_stringstream&amp;lt;char&amp;gt;’ has no member named ‘size’&lt;br /&gt;
/tmp/build/include/fastformat/shims/action/fmt_slices/generic_string.hpp:126:13: error: ‘struct std::basic_stringstream&amp;lt;char&amp;gt;’ has no member named ‘append’&lt;br /&gt;
/tmp/build/include/fastformat/shims/action/fmt_slices/generic_string.hpp:134:9: error: ‘struct std::basic_stringstream&amp;lt;char&amp;gt;’ has no member named ‘append’&lt;br /&gt;
make[3]: *** [src/test/CMakeFiles/fastformat-test.dir/ff_test.cpp.o] Error 1&lt;br /&gt;
make[2]: *** [src/test/CMakeFiles/fastformat-test.dir/all] Error 2&lt;br /&gt;
make[1]: *** [all] Error 2&lt;br /&gt;
make: *** [all] Error 2&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abe Bachrach</dc:creator><pubDate>Thu, 22 Dec 2011 19:58:35 -0000</pubDate><guid>https://sourceforge.net1070d7d1b13a826c1ef5134b2be3efd6b15e1bf7</guid></item><item><title>Build fails in Debian wheezy (64 bits) with gcc 4.6.2</title><link>https://sourceforge.net/p/fastformat/bugs/95/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;When compiling with 'make build', we get the following error:&lt;/p&gt;
&lt;p&gt;g++  -c -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor -Werror     -D_REENTRANT -DNDEBUG -U_DEBUG -O3 -Dunix       -DFASTFORMAT_NO_IMPLICIT_LINK -I../../include  -I/home/zara/curro/stlsoft/include      -o test.performance.scenario1.mt.o ../../test/performance/test.performance.overload.ex.1/test.performance.overload.ex.1.cpp&lt;br /&gt;
/home/zara/curro/stlsoft/include/stlsoft/conversion/integer_to_string.hpp: In function ‘int main_(int, char**)’:&lt;br /&gt;
/home/zara/curro/stlsoft/include/stlsoft/conversion/integer_to_string.hpp:359:13: error: array subscript is below array bounds [-Werror=array-bounds]&lt;br /&gt;
/home/zara/curro/stlsoft/include/stlsoft/conversion/integer_to_string.hpp:359:13: error: array subscript is below array bounds [-Werror=array-bounds]&lt;br /&gt;
cc1plus: all warnings being treated as errors&lt;/p&gt;
&lt;p&gt;It can be turned off, allowing the build to complete without further errors with the following change:&lt;/p&gt;
&lt;p&gt;--- a/build/gcc46.unix/makefile&lt;br /&gt;
+++ b/build/gcc46.unix/makefile&lt;br /&gt;
@@ -140,7 +140,7 @@ COMMON_INCLUDES             =&lt;/p&gt;
&lt;p&gt;CPPC_F_NOLOGO                  =     &lt;br /&gt;
CPPC_F_COMPILE_ONLY    =       -c&lt;br /&gt;
-CPPC_F_WARNING_MAX             =       -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor&lt;br /&gt;
+CPPC_F_WARNING_MAX             =       -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor -Wno-array-bounds&lt;br /&gt;
CPPC_F_WARNING_ERR             =       -Werror&lt;br /&gt;
CPPC_F_EXCEPTIONS_ON   =     &lt;br /&gt;
CPPC_F_EXCEPTIONS_OFF  =&lt;br /&gt;
&lt;/p&gt;
&lt;p&gt;It is possibly too harsh, but it works. If you need me to make any further testing, please do tell me, I'll help with pleasure.&lt;/p&gt;
&lt;p&gt;Thanks for all your good work!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zara</dc:creator><pubDate>Fri, 09 Dec 2011 22:21:22 -0000</pubDate><guid>https://sourceforge.net7d951eae466b4f4bd54fc759a2cba91b214f4be7</guid></item><item><title>weird exception behaviour</title><link>https://sourceforge.net/p/fastformat/bugs/94/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Tests that catch expected exceptions are failing with GCC 4.2 on Mac OS-X 10.7. Seems to be a code-generation error.&lt;/p&gt;
&lt;p&gt;The following changes to xTests' main header work:&lt;/p&gt;
&lt;p&gt;#  if defined(STLSOFT_COMPILER_IS_GCC)&lt;br /&gt;
#   define XTESTS_INVOKE_TEST_CASE_FN_INNER_(fn) do { try { (*fn)(); } catch(...) { throw; } } while(0)&lt;br /&gt;
#  else /* ? compiler */&lt;br /&gt;
#   define XTESTS_INVOKE_TEST_CASE_FN_INNER_(fn) (*fn)()&lt;br /&gt;
#  endif /* compiler */&lt;/p&gt;
&lt;p&gt;#  define XTESTS_INVOKE_TEST_CASE_FN_(fn, name)                                         \
\
do                                                                                  \
{                                                                                   \
try                                                                             \
{                                                                               \
XTESTS_INVOKE_TEST_CASE_FN_INNER_(fn);                                      \
}                                                                               \
catch(std::bad_alloc&amp;amp; x)                                                        \
{                                                                               \
XTESTS_REPORT_EXCEPTION_(x);                                                \
\
throw;                                                                      \
}                                                                               \
catch(XTESTS_NS_CPP_QUAL(requirement_failed_exception)&amp;amp; /* x */)                \
{                                                                               \
}                                                                               \
catch(std::exception&amp;amp; x)                                                        \
{                                                                               \
XTESTS_REPORT_EXCEPTION_(x);                                                \&lt;/p&gt;
&lt;p&gt;}                                                                               \
} while(0)&lt;/p&gt;
&lt;p&gt;#  define XTESTS_INVOKE_TEST_CASE_FN_THROWS_(fn, name, type)                            \
\
do                                                                                  \
{                                                                                   \
try                                                                             \
{                                                                               \
XTESTS_INVOKE_TEST_CASE_FN_INNER_(fn);                                      \
\
XTESTS_NS_C_QUAL(xtests_caseExceptionExpected)(#type);                      \
}                                                                               \
catch(XTESTS_NS_CPP_QUAL(requirement_failed_exception)&amp;amp; /* x */)                \
{                                                                               \
...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Thu, 01 Dec 2011 20:52:04 -0000</pubDate><guid>https://sourceforge.netd8e2fd815365ab75ca71ba8b9d598849253ac41b</guid></item><item><title>Build fails on GCC 4.6 in Ubuntu 11.10x64</title><link>https://sourceforge.net/p/fastformat/bugs/93/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;I'm trying to compile fast format 0.7.1-alpha-3 on ubuntu 11.10x64 which uses GCC4.6&lt;/p&gt;
&lt;p&gt;gcc -v&lt;br /&gt;
Using built-in specs.&lt;br /&gt;
COLLECT_GCC=gcc&lt;br /&gt;
COLLECT_LTO_WRAPPER=/usr/lib/gcc/x86_64-linux-gnu/4.6.1/lto-wrapper&lt;br /&gt;
Target: x86_64-linux-gnu&lt;br /&gt;
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=x86_64-linux-gnu --host=x86_64-linux-gnu --target=x86_64-linux-gnu&lt;br /&gt;
Thread model: posix&lt;br /&gt;
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3) &lt;/p&gt;
&lt;p&gt;I built in the gcc44 target because there isn't one for 4.6&lt;/p&gt;
&lt;p&gt;unfortunately the build fails on:&lt;/p&gt;
&lt;p&gt;g++  -c -Wall -pedantic -Wno-long-long -Wno-unused-value -Wno-non-virtual-dtor -Werror     -D_REENTRANT -D_DEBUG -UNDEBUG -Dunix       -DFASTFORMAT_NO_IMPLICIT_LINK -I../../include  -I/tmp/ff/stlsoft-1.9.109/include      -o test.component.FILE.mt.debug.o ../../test/component/test.component.FILE/test.component.FILE.cpp&lt;br /&gt;
In file included from /tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/memory_mapped_file.hpp:66:0,&lt;br /&gt;
from /tmp/ff/stlsoft-1.9.109/include/platformstl/filesystem/memory_mapped_file.hpp:73,&lt;br /&gt;
from /tmp/ff/stlsoft-1.9.109/include/platformstl/filesystem/file_lines.hpp:72,&lt;br /&gt;
from ../../test/component/test.component.FILE/test.component.FILE.cpp:32:&lt;br /&gt;
/tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/filesystem_traits.hpp: In static member function ‘static stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::bool_type stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::create_directory(const char_type*)’:&lt;br /&gt;
/tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/filesystem_traits.hpp:1219:21: error: variable ‘mode’ set but not used [-Werror=unused-but-set-variable]&lt;br /&gt;
/tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/filesystem_traits.hpp: In static member function ‘static stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::file_handle_type stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::invalid_file_handle_value()’:&lt;br /&gt;
/tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/filesystem_traits.hpp:1282:16: error: converting to non-pointer type ‘stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::file_handle_type {aka int}’ from NULL [-Werror=conversion-null]&lt;br /&gt;
cc1plus: all warnings being treated as errors&lt;/p&gt;
&lt;p&gt;By disabling -Wall the compilation gets a bit futher, before running into:&lt;/p&gt;
&lt;p&gt;g++  -c  -Werror     -D_REENTRANT -D_DEBUG -UNDEBUG -Dunix       -DFASTFORMAT_NO_IMPLICIT_LINK -I../../include  -I/tmp/ff/stlsoft-1.9.109/include      -o test.component.FILE.mt.debug.o ../../test/component/test.component.FILE/test.component.FILE.cpp&lt;br /&gt;
In file included from /tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/memory_mapped_file.hpp:66:0,&lt;br /&gt;
from /tmp/ff/stlsoft-1.9.109/include/platformstl/filesystem/memory_mapped_file.hpp:73,&lt;br /&gt;
from /tmp/ff/stlsoft-1.9.109/include/platformstl/filesystem/file_lines.hpp:72,&lt;br /&gt;
from ../../test/component/test.component.FILE/test.component.FILE.cpp:32:&lt;br /&gt;
/tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/filesystem_traits.hpp: In static member function ‘static stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::file_handle_type stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::invalid_file_handle_value()’:&lt;br /&gt;
/tmp/ff/stlsoft-1.9.109/include/unixstl/filesystem/filesystem_traits.hpp:1282:16: error: converting to non-pointer type ‘stlsoft::unixstl_project::filesystem_traits&amp;lt;char&amp;gt;::file_handle_type {aka int}’ from NULL [-Werror=conversion-null]&lt;br /&gt;
cc1plus: all warnings being treated as errors&lt;/p&gt;
&lt;p&gt;if I disable -Werror, the build completes.&lt;/p&gt;
&lt;p&gt;For reference, things built just fine on ubuntu 10.10x64 (which uses gcc 4.4.5)&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Abe Bachrach</dc:creator><pubDate>Sun, 20 Nov 2011 00:25:59 -0000</pubDate><guid>https://sourceforge.net1739ef48125708d2a2b6d525ec85260a5c66d767</guid></item><item><title>Wrong behaviour of fmtln (linux).</title><link>https://sourceforge.net/p/fastformat/bugs/92/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In example.overload.3.floatingpoint_columns.cpp if one try to output with  "[{0,14,3,&amp;lt;}{1,14,3,&amp;lt;}]" such format string (line 213) the result is [123123]. gcc 4.5.2 Linux&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Tue, 29 Mar 2011 15:48:21 -0000</pubDate><guid>https://sourceforge.netf3b23351cfc6602fabd1c2228eee099033b196dd</guid></item><item><title>Strange behaviour on Mac Tiger</title><link>https://sourceforge.net/p/fastformat/bugs/91/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;The preprocessing of the header files in Mac Tiger (10.4), removes last 'r' from lines, i.e.&lt;br /&gt;
struct xtests_integer_failure_reporter_selector&lt;br /&gt;
is converted into:&lt;br /&gt;
struct xtests_integer_failure_reporter_selecto&lt;br /&gt;
giving all kind of problems when compiling&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Zara</dc:creator><pubDate>Thu, 25 Nov 2010 09:28:30 -0000</pubDate><guid>https://sourceforge.netf713377b0f6f5487b7b0f5b50928229b23e00a84</guid></item><item><title>Inconsistent conditionals in namespace suppression</title><link>https://sourceforge.net/p/fastformat/bugs/90/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;In files:&lt;/p&gt;
&lt;p&gt;* src/api.cpp&lt;br /&gt;
* src/fmt_cache.cpp&lt;br /&gt;
* src/fmt_spec_defect_handlers.cpp&lt;br /&gt;
* src/memory_pool.cpp&lt;br /&gt;
* src/replacements.cpp&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://sourceforge.net/projects/fastformat/forums/forum/612782/topic/3939419"&gt;https://sourceforge.net/projects/fastformat/forums/forum/612782/topic/3939419&lt;/a&gt; for further details&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Wilson</dc:creator><pubDate>Wed, 10 Nov 2010 21:59:24 -0000</pubDate><guid>https://sourceforge.net334d25b4915aa36dd2a2865b5769ff5f234b387a</guid></item><item><title>CComBSTR sink fails when adding 0-length to !empty instance</title><link>https://sourceforge.net/p/fastformat/bugs/89/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;- need to add this test-case to all sink tests&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Wilson</dc:creator><pubDate>Tue, 14 Sep 2010 03:23:02 -0000</pubDate><guid>https://sourceforge.net60f439e8618cf651f3252d06e9ad36efc8aa63c8</guid></item><item><title>Max width of 0 is not respected</title><link>https://sourceforge.net/p/fastformat/bugs/88/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;Is ignored. Should truncate to empty string&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Matt Wilson</dc:creator><pubDate>Mon, 17 May 2010 05:58:05 -0000</pubDate><guid>https://sourceforge.net64a7b0cc5df7dce13a433588ffe3c5df7c2b48d1</guid></item></channel></rss>