From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109820 invoked by alias); 30 Aug 2015 09:58:53 -0000 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 Received: (qmail 109758 invoked by uid 48); 30 Aug 2015 09:58:49 -0000 From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/67219] [6 Regression] Incorrect conversion warning Date: Sun, 30 Aug 2015 09:58:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Version: 6.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 6.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-08/txt/msg02029.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67219 --- Comment #4 from Thomas Koenig --- The backtrace shows where this comes from: #0 gfc_warning_now (opt=201, gmsgid=0x1437d10 "Change of value in conversion from %qs to %qs at %L") at ../../trunk/gcc/fortran/error.c:1187 #1 0x000000000061a05d in gfc_int2real (src=0x1ea1de0, kind=4) at ../../trunk/gcc/fortran/arith.c:2079 #2 0x00000000006971b0 in match_sym_complex_part (result=0x7fffffffce60) at ../../trunk/gcc/fortran/primary.c:1286 #3 match_complex_part (result=0x7fffffffce60) at ../../trunk/gcc/fortran/primary.c:1311 #4 0x0000000000697262 in match_complex_constant (result=result@entry=0x7fffffffd0f0) at ../../trunk/gcc/fortran/primary.c:1344 #5 0x0000000000697448 in gfc_match_literal_constant (result=result@entry=0x7fffffffd0f0, signflag=signflag@entry=0) at ../../trunk/gcc/fortran/primary.c:1448 #6 0x0000000000675c33 in match_primary (result=0x7fffffffd0f0) at ../../trunk/gcc/fortran/matchexp.c:149 #7 match_level_1 (result=) at ../../trunk/gcc/fortran/matchexp.c:211 Seems like the gfc_warning_now isn't appropriate here. I will see what happens when this is converted to gfc_warning.