This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/16112] New: [3.5 regression] ICE with statement expression in return statement


Hi Jason,

your patch
  http://gcc.gnu.org/ml/gcc-cvs/2004-06/msg00737.html
broke the following testcase (inspired by PR 11295) on mainline:

========================================
struct A
{
    A();
};

A foo() { return ({ A(); }); }
========================================

Compiling this with "g++ -c" I get:

bug.cc: In function `A foo()':
bug.cc:11: internal compiler error: in gimplify_expr, at gimplify.c:3452
Please submit a full bug report, [etc.]

Could you please have a look?

-- 
           Summary: [3.5 regression] ICE with statement expression in return
                    statement
           Product: gcc
           Version: 3.5.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: critical
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org,jason at gcc dot gnu dot
                    org


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]