[Bug c++/13963] gcc rejects array of unknown bounds as parameter of function template specialization

giovannibajo at libero dot it gcc-bugzilla@gcc.gnu.org
Mon Feb 2 00:32:00 GMT 2004


------- Additional Comments From giovannibajo at libero dot it  2004-02-02 00:32 -------
I agree with you, especially since we accept the following:

template <typename X> void h(X x) {}
int B(void);

void foo(void)
{
  h<int()>(B);
}

I think that wherever we perform *this* decay conversion we have to perform 
also the array-to-pointer decay conversion. Somewhere deep into pt.c :)

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2004-02-02 00:32:39
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13963



More information about the Gcc-bugs mailing list