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]

ICE in current CVS snapshot



Using the GCC Online Compiler Submission at
http://www.codesourcery.com/gcc-compile.html on the following code
generates an "Internal compiler error" when -O is enabled (see
attached):

  #include <map>
  
  struct C {
    typedef std::map< int, int > M;
  
    C(M n=M()) {  }
    virtual void f();
    M m;
  };
  
  void C::f() {  }

In case this code proves useful as a test case, I hereby place it into
the public domain for anyone to use for whatever purpose they see fit.

Jim Bednar

-------------------------------------------------------------------------------
Tue May  9 23:36:26 CDT 2000
GCC Output


These are the results of processing your source code with the following command:

    c++ -x c++ -c -O [input] 


Exit code: 256

Messages:

    c++: Internal compiler error: program cc1plus got fatal
    signal 11


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