[Bug c++/11149] New: [3.3/3.4 Regression] ICE on error when instantiation with call function of a base type

pinskia@physics.uc.edu gcc-bugzilla@gcc.gnu.org
Wed Jun 11 04:03:00 GMT 2003


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: [3.3/3.4 Regression] ICE on error when instantiation
                    with call function of a base type
           Product: gcc
           Version: unknown
            Status: NEW
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: pinskia@physics.uc.edu
                CC: gcc-bugs@gcc.gnu.org
OtherBugsDependingO 11148
             nThis:

compile this code:

template <typename X>
class Foo {
    int i;
public:
    Foo() {
        X::explode();
    }
};

class Bar {
    Foo<int> foo_;
public:
    Bar() {}
};

template class Foo<int>;

Since this is split, and I can confirm this on the mainline (20030610) and 3.3.1 
(20030526) and I do not see the ICE. in 3.2.3



More information about the Gcc-bugs mailing list