public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/37337]  New: ice for legal C++ code
@ 2008-09-02 18:25 dcb314 at hotmail dot com
  2008-09-02 18:26 ` [Bug c++/37337] " dcb314 at hotmail dot com
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2008-09-02 18:25 UTC (permalink / raw)
  To: gcc-bugs

I just tried to compile the Suse Linux package bochs-2.2.1-202
with the GNU C++ compiler version 4.4 snapshot 20080829.

The compiler said

In constructor 'bx_null_pktmover_c::bx_null_pktmover_c(const char*, const
char*, void (*)(void*, const void*, unsigned int), void*, char*)':
eth_null.cc:88: error: BB 18 can not throw but has EH edges
eth_null.cc:88: internal compiler error: verify_flow_info failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.

Pre-processed source code attached. Flags -O2 -fpermissive required.


-- 
           Summary: ice for legal C++ code
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dcb314 at hotmail dot com
  GCC host triplet: suse-linux-x86_64


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


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

* [Bug c++/37337] ice for legal C++ code
  2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
@ 2008-09-02 18:26 ` dcb314 at hotmail dot com
  2008-09-02 18:40 ` [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed rguenth at gcc dot gnu dot org
                   ` (5 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: dcb314 at hotmail dot com @ 2008-09-02 18:26 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from dcb314 at hotmail dot com  2008-09-02 18:25 -------
Created an attachment (id=16197)
 --> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16197&action=view)
C++ source code


-- 


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


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

* [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed
  2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
  2008-09-02 18:26 ` [Bug c++/37337] " dcb314 at hotmail dot com
@ 2008-09-02 18:40 ` rguenth at gcc dot gnu dot org
  2008-09-06  1:24 ` pinskia at gcc dot gnu dot org
                   ` (4 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2008-09-02 18:40 UTC (permalink / raw)
  To: gcc-bugs



-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
          Component|c++                         |middle-end
           Keywords|                            |ice-on-valid-code
            Summary|ice for legal C++ code      |[4.4 Regression] ICE:
                   |                            |verify_flow_info failed
   Target Milestone|---                         |4.4.0


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


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

* [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed
  2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
  2008-09-02 18:26 ` [Bug c++/37337] " dcb314 at hotmail dot com
  2008-09-02 18:40 ` [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed rguenth at gcc dot gnu dot org
@ 2008-09-06  1:24 ` pinskia at gcc dot gnu dot org
  2008-09-06  2:15 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-06  1:24 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2008-09-06 01:23 -------
Reducing.


-- 


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


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

* [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed
  2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
                   ` (2 preceding siblings ...)
  2008-09-06  1:24 ` pinskia at gcc dot gnu dot org
@ 2008-09-06  2:15 ` pinskia at gcc dot gnu dot org
  2008-09-08 15:10 ` jakub at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  6 siblings, 0 replies; 8+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-09-06  2:15 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from pinskia at gcc dot gnu dot org  2008-09-06 02:13 -------
Reduced testcase:
extern "C" {
  typedef struct _IO_FILE FILE;
  extern int __fprintf_chk (FILE *__restrict __stream, int __flag,      __const
char *__restrict __format, ...);
  extern __inline __attribute__ ((__always_inline__)) __attribute__
((__gnu_inline__, __artificial__)) int fprintf (FILE *__restrict __stream,
__const char *__restrict __fmt, ...)
  {
    return __fprintf_chk (__stream, 2 - 1, __fmt,    __builtin_va_arg_pack ());
  }
}
extern int bx_pc_system;
struct eth_pktmover_c {
  virtual ~eth_pktmover_c (void) {   }
};
struct bx_null_pktmover_c : public eth_pktmover_c
{
  bx_null_pktmover_c();
  FILE *txlog_txt;
};
void f(int*);
bx_null_pktmover_c::bx_null_pktmover_c()
{
  f(&bx_pc_system);
  for (int i=0; i<6; i++)
    fprintf (txlog_txt, "%02x", 0xff);
  fprintf (txlog_txt, "\n--\n");
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2008-09-06 02:13:46
               date|                            |


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


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

* [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed
  2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
                   ` (3 preceding siblings ...)
  2008-09-06  2:15 ` pinskia at gcc dot gnu dot org
@ 2008-09-08 15:10 ` jakub at gcc dot gnu dot org
  2008-09-08 19:34 ` jakub at gcc dot gnu dot org
  2008-09-08 19:52 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-08 15:10 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from jakub at gcc dot gnu dot org  2008-09-08 15:08 -------
Testing a patch.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |jakub at gcc dot gnu dot org
                   |dot org                     |
             Status|NEW                         |ASSIGNED
   Last reconfirmed|2008-09-06 02:13:46         |2008-09-08 15:08:50
               date|                            |


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


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

* [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed
  2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
                   ` (4 preceding siblings ...)
  2008-09-08 15:10 ` jakub at gcc dot gnu dot org
@ 2008-09-08 19:34 ` jakub at gcc dot gnu dot org
  2008-09-08 19:52 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-08 19:34 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #5 from jakub at gcc dot gnu dot org  2008-09-08 19:32 -------
Subject: Bug 37337

Author: jakub
Date: Mon Sep  8 19:31:18 2008
New Revision: 140117

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=140117
Log:
        PR middle-end/37337
        * tree-ssa-dom.c (optimize_stmt): Call maybe_clean_or_replace_eh_stmt
        even when a stmt has been gimple_modified_p, but after fold_stmt is
        not any longer.  Remove unneeded may_have_exposed_new_symbols
        initializations.

        * g++.dg/tree-ssa/pr37337.C: New test.

Added:
    trunk/gcc/testsuite/g++.dg/tree-ssa/pr37337.C
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-dom.c


-- 


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


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

* [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed
  2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
                   ` (5 preceding siblings ...)
  2008-09-08 19:34 ` jakub at gcc dot gnu dot org
@ 2008-09-08 19:52 ` jakub at gcc dot gnu dot org
  6 siblings, 0 replies; 8+ messages in thread
From: jakub at gcc dot gnu dot org @ 2008-09-08 19:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from jakub at gcc dot gnu dot org  2008-09-08 19:51 -------
Fixed.


-- 

jakub at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|                            |FIXED


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


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

end of thread, other threads:[~2008-09-08 19:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-02 18:25 [Bug c++/37337] New: ice for legal C++ code dcb314 at hotmail dot com
2008-09-02 18:26 ` [Bug c++/37337] " dcb314 at hotmail dot com
2008-09-02 18:40 ` [Bug middle-end/37337] [4.4 Regression] ICE: verify_flow_info failed rguenth at gcc dot gnu dot org
2008-09-06  1:24 ` pinskia at gcc dot gnu dot org
2008-09-06  2:15 ` pinskia at gcc dot gnu dot org
2008-09-08 15:10 ` jakub at gcc dot gnu dot org
2008-09-08 19:34 ` jakub at gcc dot gnu dot org
2008-09-08 19:52 ` jakub 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).