public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21440] New: [4.0 Regression] ICE with statement-as-expression
@ 2005-05-07  8:27 dank at kegel dot com
  2005-05-07  8:31 ` [Bug c++/21440] " dank at kegel dot com
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: dank at kegel dot com @ 2005-05-07  8:27 UTC (permalink / raw)
  To: gcc-bugs

The following test program works with gcc-2.95.3 and gcc-3.4.1,
but aborts with this error on gcc-4.0.0:

z.ii: In function 'void bar()':
z.ii:11: internal compiler error: in create_tmp_var, at gimplify.c:368


struct Foo {
  ~Foo() {}
  int i;
  operator bool() { return !i; }
};

void bar() {
    Foo foo = ({
        Foo bletch;
        bletch.i = 0;
        bletch;
    });
}

This popped up in an early run of gcc-4.0.0 on real code.

-- 
           Summary: [4.0 Regression] ICE with statement-as-expression
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: dank at kegel dot com
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-linux


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


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

end of thread, other threads:[~2005-09-06 15:15 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-07  8:27 [Bug c++/21440] New: [4.0 Regression] ICE with statement-as-expression dank at kegel dot com
2005-05-07  8:31 ` [Bug c++/21440] " dank at kegel dot com
2005-05-07 15:02 ` [Bug c++/21440] [4.0/4.1 " pinskia at gcc dot gnu dot org
2005-05-09 20:44 ` pinskia at gcc dot gnu dot org
2005-06-02 10:01 ` nathan at gcc dot gnu dot org
2005-06-02 11:41 ` nathan at gcc dot gnu dot org
2005-07-06 17:03 ` mmitchel at gcc dot gnu dot org
2005-07-25 12:21 ` reichelt at gcc dot gnu dot org
2005-09-03 21:32 ` mmitchel at gcc dot gnu dot org
2005-09-05 15:59 ` cvs-commit at gcc dot gnu dot org
2005-09-05 16:01 ` cvs-commit at gcc dot gnu dot org
2005-09-05 16:08 ` mmitchel at gcc dot gnu dot org
2005-09-06 15:15 ` mmitchel 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).