You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2008/05/16 02:58:55 UTC

[jira] Created: (STDCXX-937) [Sun C++] unsats on std::numeric_limits data members

[Sun C++] unsats on std::numeric_limits<double> data members
------------------------------------------------------------

                 Key: STDCXX-937
                 URL: https://issues.apache.org/jira/browse/STDCXX-937
             Project: C++ Standard Library
          Issue Type: Bug
          Components: 18. Language Support
    Affects Versions: 4.2.1
         Environment: CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
            Reporter: Martin Sebor
            Assignee: Martin Sebor
            Priority: Critical
             Fix For: 4.2.2


As reported [here|http://stdcxx.markmail.org/message/j43dmpav34gdmdr], when using Sun C++ on Solaris, ...

{quote}
Passing {{std::numeric_limits<>}} as an lvalue as in the example below results in undefined symbols for the symbol {{std::numeric_limits<>}} at link time:

{noformat}
#include <iostream>
#include <algorithm>
#include <limits>

int main() {
  int i = std::numeric_limits<double>::digits10;
  int j = std::min(std::numeric_limits<double>::digits10, 10);
  //Undefined Symbols
  int j1 = std::max(std::numeric_limits<float>::min_exponent10, 2);
  //Undefined Symbols
  std::cout << i << std::endl;
  std::cout << j << std::endl;
}

Undefined first referenced symbol in file std::numeric_limits<double>::digits10 t.o [Hint: static member std::numeric_limits<double>::digits10 must be defined in the program]

ld: fatal: Symbol referencing errors. No output written to t *** Error code 1 make: Fatal error: Command failed for target `t' 
{noformat}
{quote}

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


[jira] Resolved: (STDCXX-937) [Sun C++] unsats on std::numeric_limits data members

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor resolved STDCXX-937.
---------------------------------

    Resolution: Fixed

Fixed.

> [Sun C++] unsats on std::numeric_limits<double> data members
> ------------------------------------------------------------
>
>                 Key: STDCXX-937
>                 URL: https://issues.apache.org/jira/browse/STDCXX-937
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 18. Language Support
>    Affects Versions: 4.2.1
>         Environment: CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Critical
>             Fix For: 4.2.2
>
>   Original Estimate: 2h
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> As reported [here|http://stdcxx.markmail.org/message/j43dmpav34gdmdr], when using Sun C++ on Solaris, ...
> {quote}
> Passing {{std::numeric_limits<>}} as an lvalue as in the example below results in undefined symbols for the symbol {{std::numeric_limits<>}} at link time:
> {noformat}
> #include <iostream>
> #include <algorithm>
> #include <limits>
> int main() {
>   int i = std::numeric_limits<double>::digits10;
>   int j = std::min(std::numeric_limits<double>::digits10, 10);
>   //Undefined Symbols
>   int j1 = std::max(std::numeric_limits<float>::min_exponent10, 2);
>   //Undefined Symbols
>   std::cout << i << std::endl;
>   std::cout << j << std::endl;
> }
> Undefined first referenced symbol in file std::numeric_limits<double>::digits10 t.o [Hint: static member std::numeric_limits<double>::digits10 must be defined in the program]
> ld: fatal: Symbol referencing errors. No output written to t *** Error code 1 make: Fatal error: Command failed for target `t' 
> {noformat}
> {quote}

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


[jira] Closed: (STDCXX-937) [Sun C++] unsats on std::numeric_limits data members

Posted by "Martin Sebor (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/STDCXX-937?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor closed STDCXX-937.
-------------------------------


Regression test is passing in nightly builds.

> [Sun C++] unsats on std::numeric_limits<double> data members
> ------------------------------------------------------------
>
>                 Key: STDCXX-937
>                 URL: https://issues.apache.org/jira/browse/STDCXX-937
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 18. Language Support
>    Affects Versions: 4.2.1
>         Environment: CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
>            Reporter: Martin Sebor
>            Assignee: Martin Sebor
>            Priority: Critical
>             Fix For: 4.2.2
>
>   Original Estimate: 2h
>          Time Spent: 2h
>  Remaining Estimate: 0h
>
> As reported [here|http://stdcxx.markmail.org/message/j43dmpav34gdmdr], when using Sun C++ on Solaris, ...
> {quote}
> Passing {{std::numeric_limits<>}} as an lvalue as in the example below results in undefined symbols for the symbol {{std::numeric_limits<>}} at link time:
> {noformat}
> #include <iostream>
> #include <algorithm>
> #include <limits>
> int main() {
>   int i = std::numeric_limits<double>::digits10;
>   int j = std::min(std::numeric_limits<double>::digits10, 10);
>   //Undefined Symbols
>   int j1 = std::max(std::numeric_limits<float>::min_exponent10, 2);
>   //Undefined Symbols
>   std::cout << i << std::endl;
>   std::cout << j << std::endl;
> }
> Undefined first referenced symbol in file std::numeric_limits<double>::digits10 t.o [Hint: static member std::numeric_limits<double>::digits10 must be defined in the program]
> ld: fatal: Symbol referencing errors. No output written to t *** Error code 1 make: Fatal error: Command failed for target `t' 
> {noformat}
> {quote}

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