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]

Internal Compiler Error


I have provided a somewhat minimal program that produces an Internal
Compiler Error under all versions of gcc that I have access to.

-------------------

The GCC version:
        egcs-2.91.66, gcc-2.95.2 & gcc-2.96-20000904
The system type:
        Linux-2.2.X/Glibc-2.1.3, HPUX-10.20/11.0, SunOS-5.6, AIX-4.3.2
All options you passed to the compiler:
        g++ -Wall -o test main.cpp

-------------------

//This is a minimal example of the problem source.
//I realize that there is a bug in the source.
//I originally made this mistake when trying to
//create an intance of an enum defined in the scope
//of an embedded class under another class.
class S {
  public:
    class SS {
      public:
        enum STATE_TYPE { INITIAL, INTERMEDIATE, FINAL };
    }; /* class S:SS */
}; /* class S */

int main(void)
{
  enum S::SS::STATE_TYPE state1; //Intended this.
  enum S::SS state2; //did this instead causes compiler error.
  return 0;
}

-- 
Jose Santiago


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