stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mukesh Kapoor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-330) compile of 22.locale.money.put.cpp fails with Sun C++ compiler
Date Thu, 01 Feb 2007 02:41:05 GMT
compile of 22.locale.money.put.cpp fails with Sun C++ compiler
--------------------------------------------------------------

                 Key: STDCXX-330
                 URL: https://issues.apache.org/jira/browse/STDCXX-330
             Project: C++ Standard Library
          Issue Type: Bug
          Components: Build
    Affects Versions: 4.1.3
         Environment: SunOS 5.9
            Reporter: Mukesh Kapoor
            Priority: Minor


Compile of 22.locale.money.put.cpp fails with the message:

"stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line 332: Error: The function "sprintf"
must have a prototype.
"stdcxx-4.1.3/tests/localization/22.locale.
money.put.cpp", line 419:     Where: While instantiating "type_test<char>(int, char,
long double, const char*, char, int, int, int, const char*, const char*)".
"stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line 419:     Where: Instantiated
from ldbl_test<char>(char).
"stdcxx-4.1.3/tests/localization/22.locale.money.put.cpp", line 830:     Where: Instantiated
from non-template code.

The fix is to use std::sprintf instead of sprintf


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message