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