This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Internal compiler error when aliasing namespaces
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Internal compiler error when aliasing namespaces
- From: "M.A.Brentjens" <brentjen at astro dot uu dot nl>
- Date: Mon, 20 Dec 1999 11:25:16 +0100 (MET)
Dear Bug-Hunter,
When trying to compile the program "bug.cpp" using the commandline
g++ -v --save-temps -ggdb bug.cpp
, the compiler will produce an internal compiler error. It will NOT
produce the error using the commandline
g++ bug.cpp
The compiler will then produce the correct output.
"stderr.txt" contains the information the compiler wrote to STDERR. It
didn't write anyting to STDOUT.
As I am a great fan of debugging-information, I hope this is enough
information to help you solve this one.
Greeting and good luck,
Michiel Brentjens
______________________________
Michiel Brentjens
Sextant 6E
3813 VS Amersfoort
The Netherlands
033-4725237
M.A.Brentjens@astro.uu.nl
Oh, I'm a programmer and I'm OK
I muck with classes and structs all day
And when it works I shout hoo-ray
Oh, I'm a programmer and I'm OK.
# 1 "bug.cpp"
namespace B
{
const int A = 10;
};
int main()
{
namespace C = B;
C::A ;
return 0;
}
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/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 -ggdb -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -Di686 -Dpentiumpro -D__i686 -D__i686__ -D__pentiumpro -D__pentiumpro__ bug.cpp bug.ii
GNU CPP version 2.95.2 19991024 (release) (i386 Linux/ELF)
#include "..." search starts here:
#include <...> search starts here:
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3
/usr/local/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../i686-pc-linux-gnu/include
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/include
/usr/include
End of search list.
The following default directories have been omitted from the search path:
End of omitted list.
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/cc1plus bug.ii -quiet -dumpbase bug.cc -ggdb -version -o bug.s
GNU C++ version 2.95.2 19991024 (release) (i686-pc-linux-gnu) compiled by GNU C version 2.95.2 19991024 (release).
bug.cpp: In function `int main()':
bug.cpp:11: Internal compiler error in `gen_decl_die', at dwarf2out.c:9618
Please submit a full bug report.
See <URL:http://www.gnu.org/software/gcc/faq.html#bugreport> for instructions.
g++ -v --save-temps -ggdb bug.cpp
namespace B
{
const int A = 10;
};
int main()
{
namespace C = B;
C::A ;
return 0;
}