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++/36852] Two dimensional array in template method argument list incorrectly interpreted.



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


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