public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23984] New: second operand of PLUS_EXPR is NULL (in constructor)
@ 2005-09-20 17:45 amylaar at gcc dot gnu dot org
  2005-09-20 17:53 ` [Bug c++/23984] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: amylaar at gcc dot gnu dot org @ 2005-09-20 17:45 UTC (permalink / raw)
  To: gcc-bugs

cc1plus crashes for the testcase I'll attach later.  There is a PLUS_EXPR, the
second operand of which is NULL. setting a breakpoint cgraph_lower_function
shows that the crash happens after cgraph_lower_function is called a second time;
moreover, the by probing the different addresses where the PLUS_EXPR ended up
during multiple runs, the offending PLUS_EXPR can be found at the start of
the second cgraph_lower_function call:

(gdb) p ((tree)0xb595ff9c)->common.code
$7 = PLUS_EXPR
(gdb) call debug_tree((tree)0xb595ff9c)
 <plus_expr 0xb595ff9c
    type <pointer_type 0xb595eb24
        type <pointer_type 0xb593205c type <pointer_type 0xb5927f74 __vtbl_ptr_type>
            sizes-gimplified unsigned SI
            size <integer_cst 0xb58ab3f0 constant invariant 32>
            unit size <integer_cst 0xb58ab180 constant invariant 4>
            align 32 symtab 0 alias set -1
            pointer_to_this <pointer_type 0xb595eb24>>
        unsigned SI size <integer_cst 0xb58ab3f0 32> unit size <integer_cst
0xb58ab180 4>
        align 32 symtab 0 alias set -1>
    readonly
    arg 0 <var_decl 0xb5961b00 __vtt_parm.7 type <pointer_type 0xb595eb24>
        used unsigned ignored SI file foo.ii line 30 size <integer_cst
0xb58ab3f0 32> unit size <integer_cst 0xb58ab180 4>
        align 32 context <function_decl 0xb5955580 __comp_ctor > abstract_origin
 <var_decl 0xb595a9f8 __vtt_parm.7>
        chain <var_decl 0xb5961b58 D.1949 type <pointer_type 0xb595eb24>
            used unsigned ignored SI file foo.ii line 30 size <integer_cst
0xb58ab3f0 32> unit size <integer_cst 0xb58ab180 4>
            align 32 context <function_decl 0xb5955580 __comp_ctor >
abstract_origin <var_decl 0xb595aa50 D.1901> chain <var_decl 0xb5961bb0 D.1950>>>>

Strangely enough, the this PLUS_EXPRESSION appears not to have been made by
make_node_stat.

-- 
           Summary: second operand of PLUS_EXPR is NULL (in constructor)
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: amylaar at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-10-14  8:43 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-23984-5394@http.gcc.gnu.org/bugzilla/>
2005-10-12 17:20 ` [Bug c++/23984] [4.0/4.1 Regression] second operand of PLUS_EXPR is NULL (in constructor) nathan at gcc dot gnu dot org
2005-10-14  8:39 ` cvs-commit at gcc dot gnu dot org
2005-10-14  8:41 ` cvs-commit at gcc dot gnu dot org
2005-10-14  8:43 ` nathan at gcc dot gnu dot org
2005-09-20 17:45 [Bug c++/23984] New: " amylaar at gcc dot gnu dot org
2005-09-20 17:53 ` [Bug c++/23984] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-09-20 17:55 ` pinskia at gcc dot gnu dot org
2005-09-20 18:05 ` pinskia at gcc dot gnu dot org
2005-09-21 14:32 ` pinskia at gcc dot gnu dot org
2005-09-21 17:08 ` janis187 at us dot ibm dot com
2005-09-27 16:22 ` mmitchel at gcc dot gnu dot org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).