This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
libstdc++/9378: 64-bit g++: construct base:std::moneypunct_byname<char>->memory fault
- From: axiong at ca dot ibm dot com
- To: gcc-gnats at gcc dot gnu dot org
- Date: 20 Jan 2003 20:20:24 -0000
- Subject: libstdc++/9378: 64-bit g++: construct base:std::moneypunct_byname<char>->memory fault
- Reply-to: axiong at ca dot ibm dot com
>Number: 9378
>Category: libstdc++
>Synopsis: 64-bit g++: construct base:std::moneypunct_byname<char>->memory fault
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Mon Jan 20 20:26:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Guan-Zhu (Andrew) Xiong
>Release: gcc version 3.2
>Organization:
>Environment:
Linux Version 2.4.19
SuSE SLES 8 (ppc) - Kernel 2.4.19-ul1-ppc64-SMP (34)
pSeries
>Description:
=> 64-bit g++ compiling:
construct base, std::moneypunct_byname<char> -> memory fault
=> not a problem with 32-bit "dfs" version g++
=> also a problem for local version of 32-bit g++ -> failed with "Abort" (not memory fault)
>How-To-Repeat:
/*********************************************************
* Copile the following code with 64-bit g++ and run it
*********************************************************/
#include <locale>
class D : public std::moneypunct_byname<char, false> {
public:
D(const char* p) : std::moneypunct_byname<char>(p) {}
};
int main(void)
{
const char* c01 = "abc";
D d(c01);
return 0;
}
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: