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]

c++/1498: Internal compiler error in pop_binding, at cp/decl.c:1179



>Number:         1498
>Category:       c++
>Synopsis:       Internal compiler error in pop_binding, at cp/decl.c:1179
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 22 06:46:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Gerald Pfeifer
>Release:        2.97 20001222 (experimental)
>Organization:
>Environment:
System: SunOS nunki 5.8 Generic_108528-04 sun4u sparc SUNW,Ultra-60
Architecture: sun4

	
host: sparc-sun-solaris2.8
build: sparc-sun-solaris2.8
target: sparc-sun-solaris2.8
configured with: /sw/test/gcc/gcc/configure --prefix=/sw/test/gcc/SunOS --enable-languages=c,c++,objc,java
>Description:
	When compiling the example below (w/o any options) g++ correctly
	diagnoses the problem and then crashes:

	x.cc:15: semicolon missing after declaration of `MG::STACK'
	x.cc:15: parse error at end of input
	x.cc:15: Internal compiler error in pop_binding, at cp/decl.c:1179

-------- cut --------
namespace MG {

class STACK
    {
public:
    class ELEMENT
        {
    public:
        unsigned short  value;
        };

    STACK() : data()
        { }
}
-------- cut --------
	
>How-To-Repeat:
	g++ check.C
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted:

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