stdcxx-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Vitek (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 18:31:24 GMT

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

Travis Vitek commented on STDCXX-643:
-------------------------------------

I'm assuming that you are talking about asserting the size of the runtime library exceptions
in a configuration test, is that right? If so, what happens if the config test fails? Without
something else, nobody will notice unless they are actually looking for the failure message
in the configuration spew. I guess that we could use the configuration test to set a macro
like {{_RWSTD_NO_EXCEPTION_BROKEN}}, and then in the library we could assert at compile time
that the macro is defined. That way the library will fail to build if we don't know the proper
sizes for the exception classes. The problem with this is that we have to hardcode the correct
values for all compilers we know. This config test, and the implementation, would need to
be ported for any new environment that we wanted to support or that our users would want to
use.

I think an ideal solution would be to do something to guarantee that these objects are of
the correct size, even for compilers that we don't officially support. We already do it for
things like {{struct lconv}} and {{struct tm}}, why not {{std::exception}}?

> 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