This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

libstdc++/9378: 64-bit g++: construct base:std::moneypunct_byname<char>->memory fault


>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:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]