public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/13474] New: fail to compile non type argument specialization of pointer to array of int
@ 2003-12-23  5:26 gprentice at paradise dot net dot nz
  2003-12-24 20:33 ` [Bug c++/13474] " pinskia at gcc dot gnu dot org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: gprentice at paradise dot net dot nz @ 2003-12-23  5:26 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2004-01-13  1:09 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-12-23  5:26 [Bug c++/13474] New: fail to compile non type argument specialization of pointer to array of int gprentice at paradise dot net dot nz
2003-12-24 20:33 ` [Bug c++/13474] " pinskia at gcc dot gnu dot org
2004-01-11  1:21 ` giovannibajo at libero dot it
2004-01-11  4:15 ` giovannibajo at libero dot it
2004-01-13  1:02 ` cvs-commit at gcc dot gnu dot org
2004-01-13  1:07 ` giovannibajo at libero dot it
2004-01-13  1:07 ` cvs-commit at gcc dot gnu dot org
2004-01-13  1:09 ` pinskia at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).