public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/17016] New: [lno] ICE with struct passed as reference
@ 2004-08-13 13:37 reichelt at gcc dot gnu dot org
  2004-08-13 13:39 ` [Bug tree-optimization/17016] " reichelt at gcc dot gnu dot org
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2004-08-13 13:37 UTC (permalink / raw)
  To: gcc-bugs

Compiling the following valid code snippet with "g++ -O" on the lno-branch
I get an ICE.

=================================
struct A
{
    int i[2];
};

void foo(A& a)
{
    for (int j=0; j<2; ++j)
        a.i[j]=0;
}
=================================

bug.cc: In function `void foo(A&)':
bug.cc:7: internal compiler error: tree check: expected integer_type or
enumeral_type or boolean_type or char_type or real_type, have reference_type in
number_of_iterations_cond, at tree-ssa-loop-niter.c:161
Please submit a full bug report, [etc.]

The ICE goes away if I pass the struct via a pointer.

-- 
           Summary: [lno] ICE with struct passed as reference
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code, monitored
          Severity: critical
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2004-08-24 20:55 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-08-13 13:37 [Bug tree-optimization/17016] New: [lno] ICE with struct passed as reference reichelt at gcc dot gnu dot org
2004-08-13 13:39 ` [Bug tree-optimization/17016] " reichelt at gcc dot gnu dot org
2004-08-13 14:10 ` reichelt at gcc dot gnu dot org
2004-08-13 14:17 ` pinskia at gcc dot gnu dot org
2004-08-15  5:34 ` pinskia at gcc dot gnu dot org
2004-08-23  7:40 ` cvs-commit at gcc dot gnu dot org
2004-08-23  7:43 ` rakdver at gcc dot gnu dot org
2004-08-23  7:49 ` reichelt at igpm dot rwth-aachen dot de
2004-08-23  7:53 ` rakdver at atrey dot karlin dot mff dot cuni dot cz
2004-08-23  8:19 ` reichelt at gcc dot gnu dot org
2004-08-23  8:24 ` [Bug tree-optimization/17016] " reichelt at gcc dot gnu dot org
2004-08-23 10:36 ` rakdver at gcc dot gnu dot org
2004-08-24 20:50 ` cvs-commit at gcc dot gnu dot org
2004-08-24 20:55 ` rakdver 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).