public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/39713]  New: [4.4/4.5 Regression] ICE in get_expr_value_id
@ 2009-04-10 11:37 jakub at gcc dot gnu dot org
  2009-04-10 11:38 ` [Bug tree-optimization/39713] " jakub at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: jakub at gcc dot gnu dot org @ 2009-04-10 11:37 UTC (permalink / raw)
  To: gcc-bugs

Since r141534 (PR37542), the following testcase segfaults during fre at -O1 and
higher:

template <typename To, typename From>
static inline To
bitwise_cast (From from)
{
  union
  {
    From f;
    To t;
  } u;
  u.f = from;
  return u.t;
}

extern void foo (unsigned char *);

double
bar ()
{
  unsigned char b[sizeof (unsigned long long)];
  foo (b);
  return bitwise_cast<double> (*(unsigned long long *) b);
}


-- 
           Summary: [4.4/4.5 Regression] ICE in get_expr_value_id
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: jakub at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-04-11  7:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-04-10 11:37 [Bug tree-optimization/39713] New: [4.4/4.5 Regression] ICE in get_expr_value_id jakub at gcc dot gnu dot org
2009-04-10 11:38 ` [Bug tree-optimization/39713] " jakub at gcc dot gnu dot org
2009-04-10 18:31 ` rguenth at gcc dot gnu dot org
2009-04-10 18:43 ` rguenth at gcc dot gnu dot org
2009-04-11  7:34 ` rguenth at gcc dot gnu dot org
2009-04-11  7:43 ` rguenth at gcc dot gnu dot org
2009-04-11  7:44 ` rguenth 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).