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] Updated: (STDCXX-983) [Linux/gcc] 20.meta.unary.prop.cpp fails is_pod assertions
Date Wed, 02 Jul 2008 22:28:45 GMT

     [ https://issues.apache.org/jira/browse/STDCXX-983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Martin Sebor updated STDCXX-983:
--------------------------------

          Component/s:     (was: TR1.4 - Metaprogramming and Type Traits)
                       External
    Affects Version/s:     (was: 4.3)
        Fix Version/s:     (was: 4.3)

This is a bug in third party software (gcc), not in stdcxx. Set Component to External.

> [Linux/gcc] 20.meta.unary.prop.cpp fails is_pod assertions
> ----------------------------------------------------------
>
>                 Key: STDCXX-983
>                 URL: https://issues.apache.org/jira/browse/STDCXX-983
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: gcc-4.3
>            Reporter: Travis Vitek
>
> I'm pretty confident that the following should compile and run without failure. It abbends
with SIGABRT with recent versions of gcc-4.3.
> {noformat}
> $ cat t.cpp && g++ t.cpp && ./a.out
> #include <assert.h>
> struct empty_t
> {
> };
> struct trivial_t
> {
>   long value;
> };
> template <class T>
> struct public_derived_t : T
> {
> };
> int main ()
> {
>     assert (__is_pod(trivial_t));
>     assert (__is_pod(public_derived_t<trivial_t>));
>     assert (__is_pod(empty_t));
>     assert (__is_pod(public_derived_t<empty_t>));
>     return 0;
> }
> a.out: t.cpp:20: int main(): Assertion `__is_pod(public_derived_t<trivial_t>)'
failed.
> Aborted
> {noformat}

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