gcc version 4.1.0 20050730 (experimental)

[EMAIL PROTECTED]:/tmp% cat bug.cc 
bool f();
struct S {
    S();
    ~S();
};
void g() {
    for (;;) {
        S s1, s2, s3, s4, s5, s6;
        if (f())
            continue;
        if (f())
            return;
    }
}

[EMAIL PROTECTED]:/tmp% g++ -c -O bug.cc
[EMAIL PROTECTED]:/tmp% g++ -c -O2 -fno-exceptions bug.cc
[EMAIL PROTECTED]:/tmp% g++ -c -O -fno-exceptions bug.cc 
bug.cc: In function 'void g()':
bug.cc:6: internal compiler error: in cleanup_tree_cfg, at tree-cfgcleanup.c:542
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

-- 
           Summary: ICE in cleanup_tree_cfg with -O -fno-exceptions
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: falk at debian dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: alphaev68-unknown-linux-gnu
  GCC host triplet: alphaev68-unknown-linux-gnu
GCC target triplet: alphaev68-unknown-linux-gnu


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

Reply via email to