public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/42923]  New: ice: verify_stmts failed
@ 2010-02-01 16:14 regehr at cs dot utah dot edu
  2010-02-01 17:05 ` [Bug c/42923] " rguenth at gcc dot gnu dot org
  2010-02-22 15:46 ` rguenth at gcc dot gnu dot org
  0 siblings, 2 replies; 3+ messages in thread
From: regehr at cs dot utah dot edu @ 2010-02-01 16:14 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1891 bytes --]

regehr@john-home:~/volatile/bugs/tmp264$ current-gcc -c -O2 small.c
small.c: In function ‘node_get_length’:
small.c:33:1: error: type mismatch in binary expression
int

int

size_t

add_acc.0_12 = add_acc.0_4 + D.1984_13;

small.c:33:1: internal compiler error: verify_stmts failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

regehr@john-home:~/volatile/bugs/tmp264$ cat small.c

typedef unsigned size_t;
size_t strlen(const char *s);

typedef struct _Record
{
  char *name;
} Record;

typedef struct _Node
{
  char type;
  union
  {
    struct
    {
      Record *record;
      struct _Node *child;
    }
    function;
  }
  data;
} Node;

int node_get_length (Node * node)
{
  switch (node->type)
    {
    case 'f':
      return strlen (node->data.function.record->name) + 1 +
        node_get_length (node->data.function.child) + 1;
    }
  return 0;
}

regehr@john-home:~/volatile/bugs/tmp264$ current-gcc -v

Using built-in specs.
COLLECT_GCC=current-gcc
COLLECT_LTO_WRAPPER=/home/regehr/z/tmp/gcc-r156428-install/libexec/gcc/i686-pc-linux-gnu/4.5.0/lto-wrapper
Target: i686-pc-linux-gnu
Configured with: ../configure --with-libelf=/usr/local --enable-lto
--prefix=/home/regehr/z/tmp/gcc-r156428-install --program-prefix=r156428-
--enable-languages=c,c++
Thread model: posix
gcc version 4.5.0 20100201 (experimental) (GCC)


-- 
           Summary: ice: verify_stmts failed
           Product: gcc
           Version: 4.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: regehr at cs dot utah dot edu
 GCC build triplet: i686-pc-linux-gnu
  GCC host triplet: i686-pc-linux-gnu
GCC target triplet: i686-pc-linux-gnu


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


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

* [Bug c/42923] ice: verify_stmts failed
  2010-02-01 16:14 [Bug c/42923] New: ice: verify_stmts failed regehr at cs dot utah dot edu
@ 2010-02-01 17:05 ` rguenth at gcc dot gnu dot org
  2010-02-22 15:46 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-01 17:05 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from rguenth at gcc dot gnu dot org  2010-02-01 17:05 -------
Related to or dup of PR42749.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  BugsThisDependsOn|                            |42749


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


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

* [Bug c/42923] ice: verify_stmts failed
  2010-02-01 16:14 [Bug c/42923] New: ice: verify_stmts failed regehr at cs dot utah dot edu
  2010-02-01 17:05 ` [Bug c/42923] " rguenth at gcc dot gnu dot org
@ 2010-02-22 15:46 ` rguenth at gcc dot gnu dot org
  1 sibling, 0 replies; 3+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-02-22 15:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from rguenth at gcc dot gnu dot org  2010-02-22 15:46 -------


*** This bug has been marked as a duplicate of 42749 ***


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


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


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

end of thread, other threads:[~2010-02-22 15:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-01 16:14 [Bug c/42923] New: ice: verify_stmts failed regehr at cs dot utah dot edu
2010-02-01 17:05 ` [Bug c/42923] " rguenth at gcc dot gnu dot org
2010-02-22 15:46 ` 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).