------- Additional Comments From pinskia at gcc dot gnu dot org  2005-06-27 
20:28 -------
we get this ICE:
t.cc:11: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.

And the backtrace:
#0  0x08134f2e in repo_emit_p (decl=0xb7cc257c) at 
/home/peshtigo/pinskia/src/gnu/gcc/src/gcc/
cp/repo.c:288
#1  0x080ca298 in import_export_decl (decl=0xb7cc257c) at 
/home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/cp/decl2.c:1726
#2  0x080f3e30 in emit_tinfo_decl (decl=0xb7cc257c) at 
/home/peshtigo/pinskia/src/gnu/gcc/src/
gcc/cp/rtti.c:1465
#3  0x080cdc95 in cp_finish_file () at 
/home/peshtigo/pinskia/src/gnu/gcc/src/gcc/cp/decl2.c:2883
#4  0x08184b0f in c_common_parse_file (set_yydebug=0) at 
/home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/c-opts.c:1119
#5  0x08493b15 in toplev_main (argc=0, argv=0xbff1a054) at 
/home/peshtigo/pinskia/src/gnu/gcc/
src/gcc/toplev.c:966
#6  0x003e7ad4 in __libc_start_main () from /lib/tls/libc.so.6
#7  0x08049b21 in _start ()


287           if (!DECL_TEMPLATE_INSTANTIATION (decl)
288               && !CLASSTYPE_TEMPLATE_INSTANTIATION (type)) <--- here

The type which is crashing on (it is not a template at all but a pointer to a 
function type):
(gdb) p debug_generic_expr (type)
intD.2 (*<T380>) (void)
 <pointer_type 0xb7d4fa8c
    type <function_type 0xb7cb1c3c
        type <integer_type 0xb7ca057c int public type_6 SI
            size <integer_cst 0xb7c983f0 constant invariant 32>
            unit size <integer_cst 0xb7c98180 constant invariant 4>
            align 32 symtab 0 alias set -1 precision 32 min <integer_cst 
0xb7c983a8 -2147483648> max 
<integer_cst 0xb7c983c0 2147483647>
            pointer_to_this <pointer_type 0xb7cafdec>>
        QI
        size <integer_cst 0xb7c981f8 constant invariant 8>
        unit size <integer_cst 0xb7c98210 constant invariant 1>
        align 8 symtab 0 alias set -1
        arg-types <tree_list 0xb7c98c48 value <void_type 0xb7caf9b4 void>>
        pointer_to_this <pointer_type 0xb7d4fa8c>>
    unsigned SI size <integer_cst 0xb7c983f0 32> unit size <integer_cst 
0xb7c98180 4>
    align 32 symtab 0 alias set -1>


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22204

Reply via email to