2014-07-26 1:54 GMT+02:00 Jim Michaels <jmich...@yahoo.com>:

> this blast of errors is telling me that in 4.9.0 posix sjlj rev2, I have
> no operator+ on my basic_string for std::u16string and std::u32string,
> which are defined in the class. sort of. part of the reason may be because
> std::basic_ostringstream::str() (?) is incompatible with std::u16string and
> std::u32string.
> why is this?
>
> I don't know if my attachment will cause a bounce.
> compiling atoi64 with -DATOI64TEST will make it a standalone executable
> and enable its main(). you will have to edit the includes.
>
> segfault may be occurring because of a different file, atoi64.cpp, which
> is including strfuncs.cpp. simple compiling that file alone causes no
> problems. it's a weird bug that this mass of 5 huge number conversion
> functions seems to trigger.
>
> there is no SCCE whatever for this. I can't reduce the segfault except to
> compiling atoi64.cpp (32-bit compiler internal segfaults with strfuncs.cpp
> also) which needs a string and number unit library I wrote. I
>
> to show you the problems I would end up attaching my project files, maybe
> through dropbox.
> if I provide my code, does it suddenly become open source?
>
>
>     std::u32string s;
>     std::basic_stringstream<char32_t> out;
>     out.width(intMantissaWidth+1+numDigitsPastDecimalPoint);
>     out.fill(' ');
>     out.precision(numDigitsPastDecimalPoint);
>     out.flags(ios::dec|ios::fixed|ios::right|ios::showpoint);
>                     out<<d;
>                     return out.str()+aprSIPrefixesd[i]+suffixStr;
> apparenrtly operator+ disappeared from basic_str...
>
> there are about 3-4 functions each.
>
>
> \prj\lib\siiec\siiec.cpp:60:10: internal compiler error: Segmentation fault
> \prj\lib\prsinum\prsinum.cpp:908:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_string
> <char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:958:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_string
> <char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1015:34: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1051:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1105:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1155:39: error: cannot bind
> 'std::basic_ostream<char16_t, std::char_traits<char16_t> >' lvalue to
> 'std::basic_ostream<char16_t, std
> ::char_traits<char16_t> >&&'
> \prj\lib\prsinum\prsinum.cpp:1209:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1245:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1290:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1321:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1354:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1374:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char16_t>::__string_type {aka
> std::basic_strin
> g<char16_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1428:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1478:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1535:34: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1571:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1625:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1675:39: error: cannot bind
> 'std::basic_ostream<char32_t, std::char_traits<char32_t> >' lvalue to
> 'std::basic_ostream<char32_t, std
> ::char_traits<char32_t> >&&'
> \prj\lib\prsinum\prsinum.cpp:1729:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1765:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1810:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1841:33: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1874:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
> \prj\lib\prsinum\prsinum.cpp:1894:37: error: no match for 'operator+'
> (operand types are 'std::basic_stringstream<char32_t>::__string_type {aka
> std::basic_strin
> g<char32_t>}' and
> '__gnu_cxx::__alloc_traits<std::allocator<std::basic_string<char> >
> >::value_type {aka std::basic_string<char>}')
>

You need to provide a SSCCE:
http://sscce.org/

Your code doesn't seem so complicated, but the snippet you provide contains
too little information (not all variables are defined).
This helps you and us find the root of the problem. Providing an unreduced
project only is useful if reducing it makes the problem go away.

I'll be glad to help once you write up a small, compilable test case that
shows the issue you are having.

Ruben


>
> -------------
> Jim Michaels
> jmich...@yahoo.com
> j...@renewalcomputerservices.com
> http:&#x2F;&#x2F;RenewalComputerServices.com
> http:&#x2F;&#x2F;JesusnJim.com (computer repair info, programming)
>
>
>
> ------------------------------------------------------------------------------
> Infragistics Professional
> Build stunning WinForms apps today!
> Reboot your WinForms applications with our WinForms controls.
> Build a bridge from your legacy apps to the future.
>
> http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
> _______________________________________________
> Mingw-w64-public mailing list
> Mingw-w64-public@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to