This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/36852] Two dimensional array in template method argument list incorrectly interpreted.
- From: "paolo dot carlini at oracle dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Jul 2008 16:37:18 -0000
- Subject: [Bug c++/36852] Two dimensional array in template method argument list incorrectly interpreted.
- References: <bug-36852-15268@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from paolo dot carlini at oracle dot com 2008-07-16 16:37 -------
We badly need a self-contained testcase (per our general guidelines) because
something trivial inspired by your PR, like the below compiles just fine.
template <class T>
T A::determinant3(T matrix[3][3])
{
// NB: not the real formula ;)
return matrix[0][0] + matrix[1][1] + matrix[2][2];
}
int main()
{
double array[3][3];
A::determinant3(array);
}
--
paolo dot carlini at oracle dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |WAITING
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36852