[
https://issues.apache.org/jira/browse/STDCXX-827?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12585818#action_12585818
]
Eric Lemings commented on STDCXX-827:
-------------------------------------
After further investigation, I don't think this issue is related to STDCXX-554
as it doesn't seem to have anything to do with the money_base or messages_base
classes. For some as yet unknown reason, it will work with the following patch
but not without it (on HP-UX PA/RISC at least).
{noformat}
Index: tests/regress/22.locale.stdcxx-554.cpp
===================================================================
--- tests/regress/22.locale.stdcxx-554.cpp (revision 644983)
+++ tests/regress/22.locale.stdcxx-554.cpp (working copy)
@@ -29,13 +29,13 @@
#include <locale> // for std::moneypunct, std::messages
+const char fill = '\xdc';
+
template <class charT>
void test_moneypunct (charT)
{
typedef std::moneypunct <charT> PunctT;
- const char fill = '\xdc';
-
char buf [sizeof (PunctT) + 1];
std::memset (buf, fill, sizeof (buf));
@@ -51,8 +51,6 @@
{
typedef std::messages <charT> MessagesT;
- const char fill = '\xdc';
-
char buf [sizeof (MessagesT) + 1];
std::memset (buf, fill, sizeof (buf));
{noformat}
> SIGBUS in 22.locale.stdcxx-554
> ------------------------------
>
> Key: STDCXX-827
> URL: https://issues.apache.org/jira/browse/STDCXX-827
> Project: C++ Standard Library
> Issue Type: Bug
> Components: Tests
> Affects Versions: trunk
> Environment: HP aCC 3.73/HP-UX/PA-RISC, Sun C++/Solaris
> Reporter: Martin Sebor
> Assignee: Eric Lemings
> Fix For: 4.2.1
>
> Original Estimate: 3h
> Remaining Estimate: 3h
>
> The regression test
> [22.locale.stdcxx-554.cpp|http://svn.apache.org/repos/asf/stdcxx/trunk/tests/regress/22.locale.stdcxx-554.cpp]
> abends with SIGBUS on some platforms:
> * HP aCC 3.73 on HP-UX/PA-RISC
> * gcc 4.1.1 or Sun C++ 5.9 on Solaris 10/SPARC
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.