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]

c/10089: ICE on initialization of variable-length array


>Number:         10089
>Category:       c
>Synopsis:       ICE on initialization of variable-length array
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Sat Mar 15 02:36:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     Marcelo Abreu
>Release:        gcc version 3.2.2
>Organization:
>Environment:
Linux 2.4.19 i686
>Description:
ICE occurs when trying to initialize a certain multidimensional array. This array has the length of leftmost dimension not specified and the length of another dimension specified by a variable.

GCC 3.2.2 outputs the following:

bug.c: In function `main':
bug.c:3: Internal compiler error in size_binop, at fold-const.c:2016
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
Try to compile the program below with: gcc bug.c -o bug

int main (int argc, char* argv[])
{
	char values[][argc] = { "" };
	return 0;
} 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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