[XLC 9.0] Partial specialization on unbound array fails due to ambiguity
------------------------------------------------------------------------
Key: STDCXX-1001
URL: https://issues.apache.org/jira/browse/STDCXX-1001
Project: C++ Standard Library
Issue Type: Bug
Components: External
Environment: [EMAIL PROTECTED] tests]$ uname -a
AIX rimple 3 5 00CBEE9E4C00
[EMAIL PROTECTED] tests]$ xlC -qversion
IBM XL C/C++ Enterprise Edition for AIX, V9.0
Version: 09.00.0000.0000
Reporter: Travis Vitek
{noformat}
$ cat t.cpp && xlC t.cpp
template <class T>
struct is_unbound_array
{
enum { value = 0 };
};
template <class T, unsigned N>
struct is_unbound_array<T [N]>
{
enum { value = 0 };
};
template <class T>
struct is_unbound_array<T []>
{
enum { value = 1 };
};
extern "C" int printf (const char*, ...);
int main ()
{
#define test(X) printf ("%s = %u\n", #X, X)
test ((is_unbound_array<int>::value));
test ((is_unbound_array<int []>::value));
test ((is_unbound_array<int [2]>::value));
test ((is_unbound_array<int [][2][3][4]>::value));
test ((is_unbound_array<int [2][3][4]>::value));
return 0;
}
"t.cpp", line 15.8: 1540-0403 (S) "template <class T> struct is_unbound_array<T
[]>" is already defined.
"t.cpp", line 9.8: 1540-0425 (I) "is_unbound_array<T [N]>" is defined on line 9
of "t.cpp".
{noformat}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.