c++/2540: Internal compiler error in `push_decl_scope', at dwarf2out.c:7726
paul@parasoft.com
paul@parasoft.com
Wed Apr 11 16:26:00 GMT 2001
>Number: 2540
>Category: c++
>Synopsis: Internal compiler error in `push_decl_scope', at dwarf2out.c:7726
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Wed Apr 11 16:26:01 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator: paul@parasoft.com
>Release: gcc-2.95.2 and gcc-2.95.3 (but not egcs-2.91.66)
>Organization:
>Environment:
Irix 6.5
>Description:
compiling test case with '-g' causes
internal compiler error
>How-To-Repeat:
/usr/local/gcc-2.95.3/bin/g++ -c -g junk.cc
junk.cc:23: Internal compiler error in `push_decl_scope', at dwarf2out.c:7726
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted:
----gnatsweb-attachment----
Content-Type: text/plain; name="junk.cc"
Content-Disposition: inline; filename="junk.cc"
struct Insure {
class Object;
class BadFormatBug;
class Resources;
};
class Insure::Object {
public:
static int roundUp(int, int);
static inline char *roundUp(char *ptr, int align) {
return (char *)0 + roundUp(ptr - (char *)0, align);
}
};
class Insure::BadFormatBug {
public:
enum ExprCode {
BF_ERROR,
};
};
class Insure::Resources {
public:
virtual const char *badFormatExprFormat(BadFormatBug::ExprCode exprCode);
};
More information about the Gcc-bugs
mailing list