First Last Prev Next    No search results available      Search page      Enter new bug
Bug#: 9936
Product:  
Component:  
Status: RESOLVED
Resolution: FIXED
Assigned To: Not yet assigned to anyone <unassigned@gcc.gnu.org>
Host:
Reported against  
Priority:  
Severity:  
Target Milestone:  
 
 
Target:
Reporter: douze@enseeiht.fr
Add CC:
CC:
Remove selected CCs
Build:
URL:
Summary:
Keywords:
Known to work:
Known to fail:

Attachment Description Type Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 9936 depends on: Show dependency tree
Show dependency graph
Bug 9936 blocks:

Additional Comments:






View Bug Activity   |   Format For Printing   |   Clone This Bug


Description:   Last confirmed: Opened: 2003-03-04 11:56
/* not preprocessed */

int foo() {
  int yd;
  float in[1][yd];
  
  static void bar() {
    printf("%p\n",in[0]);
  }
}

Release:
version 3.2.1, 3.2.2

Environment:
Linux 2.4.18, Mac OS X 10.2.4

How-To-Repeat:
gcc -c test0.c
test0.c: In function `bar':
test0.c:7: Internal compiler error in expand_expr, at expr.c:6454
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.

------- Comment #1 From douze@enseeiht.fr 2003-03-04 11:56 -------
Fix:
Fixed in GCC 3.3 with:

http://gcc.gnu.org/ml/gcc-patches/2003-04/msg00018.html

------- Comment #2 From Wolfgang Bangerth 2003-03-04 15:38 -------
State-Changed-From-To: open->analyzed
State-Changed-Why: Confirmed also on x86 linux. Works with 3.0 and mainline,
    but fails with 3.2 and 3.3:
    
    g/x> /home/bangerth/bin/gcc-3.0.4/bin/gcc -c x.c
    
    g/x> /home/bangerth/bin/gcc-3.2.2-pre/bin/gcc -c x.c
    x.c: In function `bar':
    x.c:6: Internal compiler error in expand_expr, at expr.c:6464
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
    
    g/x> /home/bangerth/bin/gcc-3.3-pre/bin/gcc -c x.c
    x.c: In function `bar':
    x.c:6: internal compiler error: in expand_expr, at expr.c:6818
    Please submit a full bug report,
    with preprocessed source if appropriate.
    See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
    
    g/x> /home/bangerth/bin/gcc-3.4-pre/bin/gcc -c x.c

------- Comment #3 From Joe Buck 2003-04-25 21:26 -------
State-Changed-From-To: analyzed->closed
State-Changed-Why: Fixed for 3.3.

First Last Prev Next    No search results available      Search page      Enter new bug