c++/3832: ICE on an odd combination of language features

mps@sonartech.com.au mps@sonartech.com.au
Thu Jul 26 06:17:00 GMT 2001


>Number:         3832
>Category:       c++
>Synopsis:       ICE on an odd combination of language features
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-legal-code
>Submitter-Id:   net
>Arrival-Date:   Thu Jul 26 06:16:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Michael Shepanski
>Release:        3.0
>Organization:
>Environment:
Linux/Intel
>Description:
// This code generates ICE.
// If you cut out any part of it, the problem goes away.

template <typename T>
void f()
{
    struct C {
        void g() { try {} catch (...) {} }
        void h();
    };
}

main ()
{
    f <int> ();
}
>How-To-Repeat:
g++ try.cpp
>Fix:
Only if you find it interesting.  I've worked around it.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the Gcc-bugs mailing list