stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Commented: (STDCXX-643) std::exception declaration incompatible with implementation provided by runtime library on AIX
Date Thu, 27 Mar 2008 15:29:27 GMT

    [ https://issues.apache.org/jira/browse/STDCXX-643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12582690#action_12582690
] 

Martin Sebor commented on STDCXX-643:
-------------------------------------

I agree that testing this is great idea. I think we might as well hardcode the sizes of all
the exception classes for each known compiler into the test itself:

{noformat}
#ifdef __VACPP__
    assert (sizeof (std::bad_alloc)) == 2 * sizeof (char*));
    assert (sizeof (std::bad_cast)) == 2 * sizeof (char*));
    assert (sizeof (std::bad_exception)) == 2 * sizeof (char*));
    assert (sizeof (std::bad_typeid)) == 2 * sizeof (char*));
    assert (sizeof (std::exception)) == 2 * sizeof (char*));
#elif defined (__HP_aCC)
    assert (sizeof (std::bad_alloc)) == sizeof (char*));
    assert (sizeof (std::bad_cast)) ==  sizeof (char*));
    assert (sizeof (std::bad_exception)) == sizeof (char*));
    assert (sizeof (std::bad_typeid)) == sizeof (char*));
    assert (sizeof (std::exception)) == sizeof (char*));
#elif defined __GNUC__
    assert (sizeof (std::bad_alloc)) == sizeof (char*));
    assert (sizeof (std::bad_cast)) ==  sizeof (char*));
    assert (sizeof (std::bad_exception)) == sizeof (char*));
    assert (sizeof (std::bad_typeid)) == sizeof (char*));
    assert (sizeof (std::exception)) == sizeof (char*));
#else
    // ...
#endif
{noformat}

> std::exception declaration incompatible with implementation provided by runtime library
on AIX
> ----------------------------------------------------------------------------------------------
>
>                 Key: STDCXX-643
>                 URL: https://issues.apache.org/jira/browse/STDCXX-643
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: 19. Diagnostics
>    Affects Versions: 4.2.0
>         Environment: AIX
>            Reporter: Travis Vitek
>             Fix For: 5.0
>
>
> A description of the problem is available here. 
> http://www.nabble.com/19.exceptions.mt.cpp-fails-on-AIX-tf4738595.html
> Essentially we need to add a const char* member to std::exception for AIX. Unfortunately
the fix is a binary incompatible with previous versions of stdcxx.

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