This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/13494] New: ICE on bidimensional array subscription in template function.
- From: "bernie at develer dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Dec 2003 14:10:24 -0000
- Subject: [Bug c++/13494] New: ICE on bidimensional array subscription in template function.
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
Oddly, this ICE goes away if the function isn't a template
or if the array has a single dimension.
template<typename T>
int foo(int d[][4])
{
return d[0][0];
}
/gccbug.cpp:4: internal compiler error: in cxx_incomplete_type_diagnostic, at
cp/typeck2.c:273
--
Summary: ICE on bidimensional array subscription in template
function.
Product: gcc
Version: 3.4.0
Status: UNCONFIRMED
Severity: critical
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: bernie at develer dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13494