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++/31411] [4.1/4.2/4.3 Regression] ICE in gimplify_expr with throw/special copy constructor with initializer with a deconstructor



------- Comment #6 from pinskia at gcc dot gnu dot org  2007-03-31 18:21 -------
Really reduced testcase:
struct allocator{
        ~allocator() throw();
};
struct string
{
        string(const string& str, const allocator& al = allocator());
};
int main() {
        try {}
        catch (string smess) {}
}


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |pinskia at gcc dot gnu dot
                   |                            |org
           Keywords|                            |ice-on-valid-code
            Summary|[4.1/4.2/4.3 Regression]    |[4.1/4.2/4.3 Regression] ICE
                   |ICE: in gimplify_expr, at   |in gimplify_expr with
                   |gimplify.c:4519             |throw/special copy
                   |                            |constructor with initializer
                   |                            |with a deconstructor
   Target Milestone|---                         |4.1.3


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


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