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: Eric Ford <eford at eford dot student dot Princeton dot EDU>
- Date: Tue, 28 Mar 2000 00:31:53 -0500
- Reply-to: eford at princeton dot edu
I imagine this is bogus code (You can probably tell that I'm just trying to
figure out how to do use namespaces.), but gcc should probably die
more elegantly.
Thanks,
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cpp -lang-c++ -v -D__GNUC__=2 -D__GNUG__=2 -D__GNUC_MINOR__=95 -D__cplusplus -D__ELF__ -Dunix -D__i386__ -Dlinux -D__ELF__ -D__unix__ -D__i386__ -D__linux__ -D__unix -D__linux -Asystem(posix) -D__EXCEPTIONS -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ compilererror.C compilererror.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../include/g++-3
/usr/local/include
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/../../../../i386-redhat-linux/includeEnd of omitted list.
/usr/lib/gcc-lib/i386-redhat-linux/2.95.2/cc1plus compilererror.ii -quiet -dumpbase compilererror.cc -version -o compilererror.s
GNU C++ version 2.95.2 19991024 (release) (i386-redhat-linux) compiled by GNU C version 2.95.2 19991024 (release).
compilererror.C: In function `int main()':
compilererror.C:15: Internal compiler error.
compilererror.C:15: Please submit a full bug report.
compilererror.C:15: See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
# 1 "compilererror.C"
namespace NS {
class Cl
{
int x;
public:
int GetX() { return x; }
};
Cl Y;
}
int main()
{
NS::Y.NS::GetX();
}
--
Eric Ford eford@princeton.edu
http://www.princeton.edu/~eford/ eford@mad.scientist.edu