This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]