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++/3123: A class derivated from a namespace causes an internal compiler error



>Number:         3123
>Category:       c++
>Synopsis:       A class derivated from a namespace causes an internal compiler error
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          ice-on-illegal-code
>Submitter-Id:   net
>Arrival-Date:   Mon Jun 11 09:46:03 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     Thomas Dégrange
>Release:        Regcc version 2.95.3 19991030 (prerelease)
>Organization:
>Environment:

>Description:
> gcc -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.3/specs
gcc version 2.95.3 19991030 (prerelease)

"The following code causes an GCC internal error on my
system and seems to be accepted on "CodeSourcery's Online
Test Compilation".
In both cases it seems to me that GCC has a bug."

> g++ main.cc
main.cc:6: Internal compiler error.
main.cc:6: Please submit a full bug report.
main.cc:6: See <URL:http://www.gnu.org/software/gcc/bugs.html> for instructions.
>How-To-Repeat:
file "main.cc":
namespace Out {
   namespace In {
   }
}

class Class : public Out::In {
};
>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]