public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
@ 2005-02-14 18:55 micis at gmx dot de
  2005-02-14 19:00 ` [Bug tree-optimization/19952] " micis at gmx dot de
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: micis at gmx dot de @ 2005-02-14 18:55 UTC (permalink / raw)
  To: gcc-bugs

When I compile ACE5.4.2 with the latest snapshot (20050213) I get an ICE.

Michael Cieslinski


g++ -O3 -ftree-vectorize -c -o Hash_Map.o Hash_Map.ii
Hash_Map.cpp: In function 'int main(int, ACE_TCHAR**)':
Hash_Map.cpp:113: internal compiler error: tree check: expected 
class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at 
tree-cfg.c:3709
Please submit a full bug report, with preprocessed source if appropriate.


g++ -v
Using built-in specs.
Target: x86_64-unknown-linux-gnu
Configured with: ../gcc40/configure --prefix=/usr/local/gcc40d --program-
suffix=40d --with-arch=opteron --enable-languages=c,c++ --enable-checking
Thread model: posix
gcc version 4.0.0 20050213 (experimental)

-- 
           Summary: ICE: tree check: expected class 'declaration', have
                    'statement' (label_expr) in tree_verify_flow_info, at
                    tree-cfg.c:3709
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: micis at gmx dot de
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: x86_64-unknown-linux-gnu
  GCC host triplet: x86_64-unknown-linux-gnu
GCC target triplet: x86_64-unknown-linux-gnu


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
@ 2005-02-14 19:00 ` micis at gmx dot de
  2005-02-14 20:05 ` pinskia at gcc dot gnu dot org
                   ` (9 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: micis at gmx dot de @ 2005-02-14 19:00 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From micis at gmx dot de  2005-02-14 13:55 -------
Created an attachment (id=8193)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8193&action=view)
preprocessed source


-- 


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
  2005-02-14 19:00 ` [Bug tree-optimization/19952] " micis at gmx dot de
@ 2005-02-14 20:05 ` pinskia at gcc dot gnu dot org
  2005-02-15 20:33 ` dorit at il dot ibm dot com
                   ` (8 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-02-14 20:05 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From pinskia at gcc dot gnu dot org  2005-02-14 15:47 -------
I should note this is an ICE right before trying to print out another ICE.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
  2005-02-14 19:00 ` [Bug tree-optimization/19952] " micis at gmx dot de
  2005-02-14 20:05 ` pinskia at gcc dot gnu dot org
@ 2005-02-15 20:33 ` dorit at il dot ibm dot com
  2005-02-17 16:45 ` giovannibajo at libero dot it
                   ` (7 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dorit at il dot ibm dot com @ 2005-02-15 20:33 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dorit at il dot ibm dot com  2005-02-15 08:44 -------
This happens during tree-if-conversion pass (before vectorization) (tree-if-
conversion is enabled by -ftree-vectorize)


-- 


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (2 preceding siblings ...)
  2005-02-15 20:33 ` dorit at il dot ibm dot com
@ 2005-02-17 16:45 ` giovannibajo at libero dot it
  2005-02-18 17:02 ` reichelt at gcc dot gnu dot org
                   ` (6 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: giovannibajo at libero dot it @ 2005-02-17 16:45 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From giovannibajo at libero dot it  2005-02-17 12:45 -------
Confirmed then.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|                            |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-02-17 12:45:49
               date|                            |


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (3 preceding siblings ...)
  2005-02-17 16:45 ` giovannibajo at libero dot it
@ 2005-02-18 17:02 ` reichelt at gcc dot gnu dot org
  2005-02-18 17:42 ` reichelt at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-18 17:02 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-18 11:04 -------
Reduced testcase (just compile with "-O -ftree-vectorize"):

==============================
int i;

struct A
{
    ~A() { ++i; }
};

struct B
{
    A a;
};

void foo()
{
    for (int i=0; i<2; ++i)
    {
        B *p;
        if (p) p->~B();
    }
}
==============================


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |reichelt at gcc dot gnu dot
                   |                            |org
  GCC build triplet|x86_64-unknown-linux-gnu    |
   GCC host triplet|x86_64-unknown-linux-gnu    |
 GCC target triplet|x86_64-unknown-linux-gnu    |
           Keywords|                            |monitored


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (4 preceding siblings ...)
  2005-02-18 17:02 ` reichelt at gcc dot gnu dot org
@ 2005-02-18 17:42 ` reichelt at gcc dot gnu dot org
  2005-02-18 17:56 ` reichelt at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-18 17:42 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-18 11:07 -------
: Search converges between 2004-09-02-trunk (#532) and 2004-09-04-trunk (#533).

-- 


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (5 preceding siblings ...)
  2005-02-18 17:42 ` reichelt at gcc dot gnu dot org
@ 2005-02-18 17:56 ` reichelt at gcc dot gnu dot org
  2005-02-18 23:01 ` dpatel at apple dot com
                   ` (3 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-18 17:56 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-18 11:43 -------
Devang, the regression was introduced with the introduction of
the if-conversion for the vectorizer by your patch
http://gcc.gnu.org/ml/gcc-cvs/2004-09/msg00207.html

Could you please have a look?


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dpatel at gcc dot gnu dot
                   |                            |org


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (6 preceding siblings ...)
  2005-02-18 17:56 ` reichelt at gcc dot gnu dot org
@ 2005-02-18 23:01 ` dpatel at apple dot com
  2005-02-22 10:41 ` reichelt at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  10 siblings, 0 replies; 12+ messages in thread
From: dpatel at apple dot com @ 2005-02-18 23:01 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From dpatel at apple dot com  2005-02-18 19:02 -------
Subject: Re:  ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709


ok
-
Devang



-- 


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (7 preceding siblings ...)
  2005-02-18 23:01 ` dpatel at apple dot com
@ 2005-02-22 10:41 ` reichelt at gcc dot gnu dot org
  2005-02-23 11:22 ` cvs-commit at gcc dot gnu dot org
  2005-02-23 14:50 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-22 10:41 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-22 01:51 -------
Patch here:
http://gcc.gnu.org/ml/gcc-patches/2005-02/msg01283.html

Devang, you got the wrong PR number in the name of the testcase
and in the ChangeLog entry!


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|dpatel at gcc dot gnu dot   |
                   |org                         |
         AssignedTo|unassigned at gcc dot gnu   |dpatel at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
           Keywords|                            |patch


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (8 preceding siblings ...)
  2005-02-22 10:41 ` reichelt at gcc dot gnu dot org
@ 2005-02-23 11:22 ` cvs-commit at gcc dot gnu dot org
  2005-02-23 14:50 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-02-23 11:22 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From cvs-commit at gcc dot gnu dot org  2005-02-23 01:11 -------
Subject: Bug 19952

CVSROOT:	/cvs/gcc
Module name:	gcc
Changes by:	dpatel@gcc.gnu.org	2005-02-23 01:10:40

Modified files:
	gcc            : ChangeLog tree-if-conv.c 
	gcc/testsuite  : ChangeLog 
Added files:
	gcc/testsuite/g++.dg/tree-ssa: pr19952.C 

Log message:
	PR 19952
	* tree-if-conv.c (process_phi_nodes): Use bsi_after_labels and skip
	all labels
	* g++.dg/tree-ssa/pr19952.C: New test.

Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&r1=2.7563&r2=2.7564
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/tree-if-conv.c.diff?cvsroot=gcc&r1=2.27&r2=2.28
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5068&r2=1.5069
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/tree-ssa/pr19952.C.diff?cvsroot=gcc&r1=NONE&r2=1.1



-- 


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


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

* [Bug tree-optimization/19952] ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709
  2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
                   ` (9 preceding siblings ...)
  2005-02-23 11:22 ` cvs-commit at gcc dot gnu dot org
@ 2005-02-23 14:50 ` reichelt at gcc dot gnu dot org
  10 siblings, 0 replies; 12+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2005-02-23 14:50 UTC (permalink / raw)
  To: gcc-bugs


------- Additional Comments From reichelt at gcc dot gnu dot org  2005-02-23 10:00 -------
Fixed.


-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED
   Target Milestone|---                         |4.0.0


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


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

end of thread, other threads:[~2005-02-23 10:02 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-02-14 18:55 [Bug tree-optimization/19952] New: ICE: tree check: expected class 'declaration', have 'statement' (label_expr) in tree_verify_flow_info, at tree-cfg.c:3709 micis at gmx dot de
2005-02-14 19:00 ` [Bug tree-optimization/19952] " micis at gmx dot de
2005-02-14 20:05 ` pinskia at gcc dot gnu dot org
2005-02-15 20:33 ` dorit at il dot ibm dot com
2005-02-17 16:45 ` giovannibajo at libero dot it
2005-02-18 17:02 ` reichelt at gcc dot gnu dot org
2005-02-18 17:42 ` reichelt at gcc dot gnu dot org
2005-02-18 17:56 ` reichelt at gcc dot gnu dot org
2005-02-18 23:01 ` dpatel at apple dot com
2005-02-22 10:41 ` reichelt at gcc dot gnu dot org
2005-02-23 11:22 ` cvs-commit at gcc dot gnu dot org
2005-02-23 14:50 ` 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).