Internal compiler error in `scope_die_for' (+ .i)

Michal Miroslaw mirq@nemezis.ipan.lublin.pl
Thu Apr 26 02:08:00 GMT 2001


I forgot to attach the preprocessed file to previous report ...
The rest is the same.

Compilation stops with message:
(gcc 2.95.2)
stdio.hh:40: Internal compiler error in `scope_die_for', at dwarf2out.c:7797
(gcc 2.95.3)
stdio.hh:40: Internal compiler error in `scope_die_for', at dwarf2out.c:7804

Files which have shown this error were mixed sources of two (very
different) versions of my library. They should not compile.
The error doesn't show if option '-ggdb' is removed.
EGCS version of gcc doesn't recognize '__restrict' in system headers
used to compile this code and fails with error:

(gcc egcs-2.91.60) (gcc egcs-2.91.66)
stdio.hh:35: confused by earlier errors, bailing out

If you would need some more information, please send e-mail to:
Michal Miroslaw <mirq@nemezis.ipan.lublin.pl>


fragment of gcc/dwarf2out.c (lines 7798-7808):
      if (i < 0)
        {
          if (TREE_CODE_CLASS (TREE_CODE (containing_scope)) != 't')
            abort ();
          if (debug_info_level > DINFO_LEVEL_TERSE
              && !TREE_ASM_WRITTEN (containing_scope))
->          abort ();

          /* If none of the current dies are suitable, we get file scope.  */
          scope_die = comp_unit_die;
        }
(line with '->' is the one stated in error message)


(System used in pts 1 and 2)
mirq@ziemniak:~ $ uname -a
Linux ziemniak.pole 2.2.19 #3 czw kwi 12 16:09:12 CEST 2001 i686 unknown
(Mandrake 7.0.2 with some updates from sources)


1. GCC from Mandrake 7.0.2 (gcc-2.95.2-3mdk.i586.rpm, ...)

mirq@ziemniak:~/src/tmp $ g++ -v
Reading specs from /usr/lib/gcc-lib/i586-mandrake-linux/2.95.2/specs
gcc version 2.95.2 19991024 (release)

mirq@ziemniak:~/src/tmp $ g++ -ggdb -c stdio.ii
In file included from stdio.cc:8:
stdio.hh:24: parse error before `{'
stdio.hh:28: destructors must be member functions
stdio.hh:29: parse error before `protected'
stdio.hh: In function `void do_start()':
stdio.hh:31: `Connection' undeclared (first use this function)
stdio.hh:31: (Each undeclared identifier is reported only once
stdio.hh:31: for each function it appears in.)
stdio.hh:31: parse error before `::'
stdio.hh:31: `connctlr' undeclared (first use this function)
stdio.hh:31: `connid' undeclared (first use this function)
stdio.hh: At top level:
stdio.hh:32: parse error before `}'
stdio.hh:35: invalid use of undefined type `class StdinConnection'
stdio.hh:15: forward declaration of `class StdinConnection'
stdio.hh: In method `StdinConnection::StdinConnection(int)':
stdio.hh:35: class `StdinConnection' does not have any field named `Connection'
stdio.hh:37: `fd' undeclared (first use this function)
stdio.hh:38: `sendbuf' undeclared (first use this function)
stdio.hh:40: Internal compiler error in `scope_die_for', at dwarf2out.c:7797
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/faq.html#bugreport > for instructions.


2. GCC compiled from original 2.95.3 sources (core + g++ + java)
(no options to configure)

mirq@ziemniak:~/src $ g++ -v
Reading specs from /usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.3/specs
gcc version 2.95.3 20010315 (release)

mirq@ziemniak:~/src $ g++ -ggdb -c stdio.ii
In file included from stdio.cc:8:
stdio.hh:24: parse error before `{'
stdio.hh:28: destructors must be member functions
stdio.hh:29: parse error before `protected'
stdio.hh: In function `void do_start()':
stdio.hh:31: `Connection' undeclared (first use this function)
stdio.hh:31: (Each undeclared identifier is reported only once
stdio.hh:31: for each function it appears in.)
stdio.hh:31: parse error before `::'
stdio.hh:31: `connctlr' undeclared (first use this function)
stdio.hh:31: `connid' undeclared (first use this function)
stdio.hh: At top level:
stdio.hh:32: parse error before `}'
stdio.hh:35: invalid use of undefined type `class StdinConnection'
stdio.hh:15: forward declaration of `class StdinConnection'
stdio.hh: In method `StdinConnection::StdinConnection(int)':
stdio.hh:35: class `StdinConnection' does not have any field named `Connection'
stdio.hh:37: `fd' undeclared (first use this function)
stdio.hh:38: `sendbuf' undeclared (first use this function)
stdio.hh:40: Internal compiler error in `scope_die_for', at dwarf2out.c:7804
Please submit a full bug report.
See <URL: http://www.gnu.org/software/gcc/bugs.html > for instructions.


-- 
Micha³ Miros³aw [mirQus] <mirq@nemezis.ipan.lublin.pl>
LU#167871  ICQ#62673582  http://www.1lo.lublin.pl/~mirq


More information about the Gcc-bugs mailing list