This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal Compiler Error
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Internal Compiler Error
- From: Jose Santiago <santiago at cs1 dot bradley dot edu>
- Date: Thu, 7 Sep 2000 10:08:31 -0500 (CDT)
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