From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20568 invoked by alias); 25 Nov 2006 21:19:49 -0000 Received: (qmail 20490 invoked by uid 48); 25 Nov 2006 21:19:38 -0000 Date: Sat, 25 Nov 2006 21:19:00 -0000 Message-ID: <20061125211938.20489.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/29976] [4.2/4.3 regression] ICE on optional arg In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "pinskia at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2006-11/txt/msg02208.txt.bz2 ------- Comment #1 from pinskia at gcc dot gnu dot org 2006-11-25 21:19 ------- The problem for the trunk is ovbious: #4 0x080c38c1 in gfc_conv_missing_dummy (se=0xbf926cf4, arg=0x9ea1228, ts= {type = BT_UNKNOWN, kind = 4, derived = 0x0, cl = 0x0}) at /src/gcc/fortran/gcc/gcc/fortran/trans-expr.c:155 155 tmp = build3 (COND_EXPR, TREE_TYPE (se->expr), present, se->expr, (gdb) l 150 { 151 tree present; 152 tree tmp; 153 154 present = gfc_conv_expr_present (arg->symtree->n.sym); 155 tmp = build3 (COND_EXPR, TREE_TYPE (se->expr), present, se->expr, 156 build_int_cst (TREE_TYPE (se->expr), 0)); (gdb) p debug_generic_expr (se->expr) *alpha_imD.988 $1 = void (gdb) p debug_tree (se->expr) unit size align 32 symtab 0 alias set -1 precision 32 pointer_to_this > arg 0 public unsigned SI size unit size align 32 symtab 0 alias set -1> readonly used unsigned SI file t.f90 line 1 size unit size align 32 context initial arg-type >> We are calling build_int_cst on a "real" type. -- pinskia at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |pinskia at gcc dot gnu dot | |org Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2006-11-25 21:19:38 date| | Target Milestone|--- |4.2.0 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29976