Internal compiler error in `make_decl_rtl', at varasm.c:738

Harri Porten porten@tu-harburg.de
Thu Mar 16 12:41:00 GMT 2000


Hi !

gcc version 2.95.2 19991024 (release)

I get an internal compiler error when compiling the attached piece of
code via GNU libtool 1.3c. If I invoke g++ manually (same command line
as used by libtool!) I just get the justified syntax error.

What could the side effect of using libtool be ? Should I contact the
libtool guys (or strip down the script to a buggy minimum) ?

Thanks,

Harri.

*** the code ***

# 1 "html.cpp"
namespace N {
  class A {
    A();
  };
};

B *f()
{
  int i;
  N::A a;
  a;
}

*** command line and ouput ***

./libtool g++ -v --save-temps -c html.cpp
g++ -v --save-temps -c html.cpp  -fPIC -DPIC -o html.lo
Reading specs from /usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/specs
gcc version 2.95.2 19991024 (release)
 /usr/local/lib/gcc-lib/i586-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 -Acpu(i386)
-Amachine(i386) -Di386 -D__i386 -D__i386__ -Di586 -Dpentium -D__i586
-D__i586__ -D__pentium -D__pentium__ -D__PIC__ -D__pic__ -DPIC html.cpp
html.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/i586-pc-linux-gnu/2.95.2/../../../../include/g++-3
 /usr/local/include

/usr/local/lib/gcc-lib/i586-pc-linux-gnu/2.95.2/../../../../i586-pc-linux-gnu/include
 /usr/local/lib/gcc-lib/i586-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/i586-pc-linux-gnu/2.95.2/cc1plus html.ii -quiet
-dumpbase html.cc -version -fPIC -o html.s
GNU C++ version 2.95.2 19991024 (release) (i586-pc-linux-gnu) compiled
by GNU C version 2.95.2 19991024 (release).
html.cpp:7: syntax error before `*'
html.cpp:11: ANSI C++ forbids declaration `a' with no type
html.cpp:11: conflicting types for `int a'
html.cpp:10: previous declaration as `class N::A a'
html.cpp:12: parse error before `}'
cc1plus: register name not specified for ` /* decl error */ '
html.cpp:13: Internal compiler error in `make_decl_rtl', at varasm.c:738
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for
instructions.



More information about the Gcc-bugs mailing list