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 middle-end/16809] New: [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers


Not quite sure about the validity of this code (we take the address 
of a temporary -- I guess it should be valid, but undefined), but 
this nasty error message that is ten times as long as the code in  
question is not appropriate: 
--------------------- 
typedef int I2[2]; 
int main () { 
  int *p = (I2) {1,2}; 
} 
--------------------- 
 
g/x> /home/bangerth/bin/gcc-3.5-pre/bin/c++ -c x.cc 
gimplification failed: 
{1, 2} <constructor 0x401819c0 
    type <array_type 0x40239a6c I2 
        type <integer_type 0x40185488 int SI 
            size <integer_cst 0x40182348 constant invariant 32> 
            unit size <integer_cst 0x401823f0 constant invariant 4> 
            align 32 symtab 0 alias set -1 precision 32 min <integer_cst 
0x401823c0 -2147483648> max <integer_cst 0x401823d8 2147483647> 
            pointer_to_this <pointer_type 0x40191e80>> 
        DI 
        size <integer_cst 0x40182798 constant invariant 64> 
        unit size <integer_cst 0x40182ab0 constant invariant 8> 
        align 32 symtab 0 alias set -1 
        domain <integer_type 0x40239910 type <integer_type 0x40191740 unsigned 
int> 
            SI size <integer_cst 0x40182348 32> unit size <integer_cst 
0x401823f0 4> 
            align 32 symtab 0 alias set -1 precision 32 min <integer_cst 
0x40182c30 0> max <integer_cst 0x40182cf0 1>> 
        pointer_to_this <pointer_type 0x40239ef4>> 
    constant invariant addressable static tree_4 
    arg 0 <tree_list 0x40238a50 
        purpose <integer_cst 0x40182c30 constant invariant 0> 
        value <integer_cst 0x402389f0 constant invariant 1> 
        chain <tree_list 0x40238a68 
            purpose <integer_cst 0x40182cf0 constant invariant 1> 
            value <integer_cst 0x40238a20 constant invariant 2>>>> 
x.cc: In function `int main()': 
x.cc:3: internal compiler error: in gimplify_expr, at gimplify.c:3972 
Please submit a full bug report, 
with preprocessed source if appropriate. 
See <URL:http://gcc.gnu.org/bugs.html> for instructions. 
 
W.

-- 
           Summary: [3.5 regression] ICE in gimplify_expr with initializer
                    of arrays and pointers
           Product: gcc
           Version: 3.4.1
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bangerth at dealii dot org
                CC: gcc-bugs at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16809


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