You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@stdcxx.apache.org by "Travis Vitek (JIRA)" <ji...@apache.org> on 2008/07/22 22:37:31 UTC

[jira] Created: (STDCXX-1002) [Sun C++] partial specialization on cv-qualifiers broken for array types

[Sun C++] partial specialization on cv-qualifiers broken for array types
------------------------------------------------------------------------

                 Key: STDCXX-1002
                 URL: https://issues.apache.org/jira/browse/STDCXX-1002
             Project: C++ Standard Library
          Issue Type: Bug
          Components: External
            Reporter: Travis Vitek


{noformat}
$ cat t.cpp && CC t.cpp

template <class T>
struct __rw_is_const
{
    enum { value = 0 };
};

template <class T>
struct __rw_is_const<const T>
{
    enum { value = 1 };
};

extern "C" int printf (const char*, ...);

int main ()
{
#define test(X) if (!(X)) printf ("%s != 1\n", #X)

    test (!__rw_is_const<int>::value);
    test (__rw_is_const<const int>::value);
    test (__rw_is_const<const int []>::value);
    test (__rw_is_const<const int [2]>::value);

    return 0;
}
__rw_is_const<const int []>::value != 1
__rw_is_const<const int [2]>::value != 1
{noformat}


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


[jira] Updated: (STDCXX-1002) [Sun C++ 5.9] partial specialization on cv-qualifiers broken for array types

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

Travis Vitek updated STDCXX-1002:
---------------------------------

    Environment: 
SunOS marbles 5.10 Generic_118855-33 i86pc i386 i86pc
CC: Sun C++ 5.9 SunOS_i386 Patch 124864-01 2007/07/25
        Summary: [Sun C++ 5.9] partial specialization on cv-qualifiers broken for array types  (was: [Sun C++] partial specialization on cv-qualifiers broken for array types)

> [Sun C++ 5.9] partial specialization on cv-qualifiers broken for array types
> ----------------------------------------------------------------------------
>
>                 Key: STDCXX-1002
>                 URL: https://issues.apache.org/jira/browse/STDCXX-1002
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>         Environment: SunOS marbles 5.10 Generic_118855-33 i86pc i386 i86pc
> CC: Sun C++ 5.9 SunOS_i386 Patch 124864-01 2007/07/25
>            Reporter: Travis Vitek
>
> {noformat}
> $ cat t.cpp && CC t.cpp
> template <class T>
> struct __rw_is_const
> {
>     enum { value = 0 };
> };
> template <class T>
> struct __rw_is_const<const T>
> {
>     enum { value = 1 };
> };
> extern "C" int printf (const char*, ...);
> int main ()
> {
> #define test(X) if (!(X)) printf ("%s != 1\n", #X)
>     test (!__rw_is_const<int>::value);
>     test (__rw_is_const<const int>::value);
>     test (__rw_is_const<const int []>::value);
>     test (__rw_is_const<const int [2]>::value);
>     return 0;
> }
> __rw_is_const<const int []>::value != 1
> __rw_is_const<const int [2]>::value != 1
> {noformat}

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


[jira] Commented: (STDCXX-1002) [Sun C++] partial specialization on cv-qualifiers broken for array types

Posted by "Travis Vitek (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/STDCXX-1002?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12615783#action_12615783 ] 

Travis Vitek commented on STDCXX-1002:
--------------------------------------

Filed with Sun as bug [#6728401|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6728401].


> [Sun C++] partial specialization on cv-qualifiers broken for array types
> ------------------------------------------------------------------------
>
>                 Key: STDCXX-1002
>                 URL: https://issues.apache.org/jira/browse/STDCXX-1002
>             Project: C++ Standard Library
>          Issue Type: Bug
>          Components: External
>            Reporter: Travis Vitek
>
> {noformat}
> $ cat t.cpp && CC t.cpp
> template <class T>
> struct __rw_is_const
> {
>     enum { value = 0 };
> };
> template <class T>
> struct __rw_is_const<const T>
> {
>     enum { value = 1 };
> };
> extern "C" int printf (const char*, ...);
> int main ()
> {
> #define test(X) if (!(X)) printf ("%s != 1\n", #X)
>     test (!__rw_is_const<int>::value);
>     test (__rw_is_const<const int>::value);
>     test (__rw_is_const<const int []>::value);
>     test (__rw_is_const<const int [2]>::value);
>     return 0;
> }
> __rw_is_const<const int []>::value != 1
> __rw_is_const<const int [2]>::value != 1
> {noformat}

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