This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/11392] New: Generalisation of 8730 bug
- From: "ilgis at num dot uni-sb dot de" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jul 2003 16:38:04 -0000
- Subject: [Bug c/11392] New: Generalisation of 8730 bug
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11392
Summary: Generalisation of 8730 bug
Product: gcc
Version: 3.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: ilgis at num dot uni-sb dot de
CC: gcc-bugs at gcc dot gnu dot org
Dear All,
the following bug occoured
c.c: In function `two':
c.c:6: internal compiler error: in expand_expr, at expr.c:6866
when I compile the following example:
///////////////////////////////////////////
void three(double *A);
void one(int N1, int N2, int M, void *data)
{
void two(double D[N1][N2][N2])
{ three(D[M][0]);
return;
}
two(data);
return;
}
//////////////////////////////////////////
If I remove 3-D arrays like:
//////////////////////////////////////////
void three(double *A);
void one(int N1, int N2, int M, void *data)
{
void two(double D[N1][N2])
{ three(D[M]);
return;
}
two(data);
return;
}
/////////////////////////////////////////////
then it is Ok.
I tested it on gcc-3.3 release.
PS: when this bug will be fixed, please check 4 and more dimensional arrays to
avoid a new bug report from me :)
Sincerely
Ilghiz