public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/16809] New: [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers
@ 2004-07-28 21:33 bangerth at dealii dot org
  2004-07-28 21:33 ` [Bug middle-end/16809] " bangerth at dealii dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: bangerth at dealii dot org @ 2004-07-28 21:33 UTC (permalink / raw)
  To: gcc-bugs

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


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-08-25 10:38 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-28 21:33 [Bug middle-end/16809] New: [3.5 regression] ICE in gimplify_expr with initializer of arrays and pointers bangerth at dealii dot org
2004-07-28 21:33 ` [Bug middle-end/16809] " bangerth at dealii dot org
2004-07-28 21:43 ` pinskia at gcc dot gnu dot org
2004-07-28 21:51 ` jsm at polyomino dot org dot uk
2004-07-28 21:52 ` bangerth at ices dot utexas dot edu
2004-07-28 21:53 ` bangerth at ices dot utexas dot edu
2004-07-28 22:17 ` jsm at polyomino dot org dot uk
2004-07-28 22:26 ` bangerth at dealii dot org
2004-08-25 10:38 ` reichelt at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).