This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13474] New: fail to compile non type argument specialization of pointer to array of int
- From: "gprentice at paradise dot net dot nz" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 23 Dec 2003 03:45:51 -0000
- Subject: [Bug c++/13474] New: fail to compile non type argument specialization of pointer to array of int
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
GCC gives
test1.cpp:6: could not convert template argument `&array' to `int (*)[5]'
for the following code. It compiles with VC7.1.
template< int X, int Y, int (*array_ptr)[Y] > class A {};
int array[5];
template< int X > class A<X,5,&array> { };
int main()
{
A<6,5,&array> z1;
}
--
Summary: fail to compile non type argument specialization of
pointer to array of int
Product: gcc
Version: 3.2.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: gprentice at paradise dot net dot nz
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13474