This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13963] gcc rejects array of unknown bounds as parameter of function template specialization
- From: "giovannibajo at libero dot it" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 2 Feb 2004 00:32:40 -0000
- Subject: [Bug c++/13963] gcc rejects array of unknown bounds as parameter of function template specialization
- References: <20040201194206.13963.austern@apple.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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