public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/45564] New: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check
@ 2010-09-06 20:42 zsojka at seznam dot cz
2010-09-06 22:17 ` [Bug fortran/45564] " dominiq at lps dot ens dot fr
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2010-09-06 20:42 UTC (permalink / raw)
To: gcc-bugs
Compiler output:
$ gcc -fbounds-check achar_4.f90
achar_4.f90: In function 'up':
achar_4.f90:10:0: error: type mismatch in comparison expression
integer(kind=8)
integer(kind=8)
integer(kind=4)
D.1758 = D.1594 != 1;
achar_4.f90:10:0: internal compiler error: verify_gimple failed
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
Tested revisions:
r163921 - crash
r158095 - crash
--
Summary: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type
mismatch in comparison expression with -fbounds-check
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: fortran
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: zsojka at seznam dot cz
GCC host triplet: x86_64-pc-linux-gnu
GCC target triplet: x86_64-pc-linux-gnu
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45564
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/45564] gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check
2010-09-06 20:42 [Bug fortran/45564] New: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check zsojka at seznam dot cz
@ 2010-09-06 22:17 ` dominiq at lps dot ens dot fr
2010-09-06 22:20 ` mikael at gcc dot gnu dot org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: dominiq at lps dot ens dot fr @ 2010-09-06 22:17 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from dominiq at lps dot ens dot fr 2010-09-06 22:17 -------
Confirmed on x86_64-apple-darwin10. The ICE disappears with -m32 and does not
show up on builds with --enable-checking=release.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45564
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/45564] gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check
2010-09-06 20:42 [Bug fortran/45564] New: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check zsojka at seznam dot cz
2010-09-06 22:17 ` [Bug fortran/45564] " dominiq at lps dot ens dot fr
@ 2010-09-06 22:20 ` mikael at gcc dot gnu dot org
2010-09-07 8:45 ` rguenth at gcc dot gnu dot org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-09-06 22:20 UTC (permalink / raw)
To: gcc-bugs
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1083 bytes --]
------- Comment #2 from mikael at gcc dot gnu dot org 2010-09-06 22:20 -------
Index: trans-intrinsic.c
===================================================================
--- trans-intrinsic.c (r��vision 163809)
+++ trans-intrinsic.c (copie de travail)
@@ -4612,7 +4612,7 @@
se->expr = info->descriptor;
if (expr->ts.type == BT_CHARACTER)
- se->string_length = dest_word_len;
+ se->string_length = fold_convert (gfc_charlen_type_node, dest_word_len);
return;
--
mikael at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |mikael at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-09-06 22:20:16
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45564
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/45564] gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check
2010-09-06 20:42 [Bug fortran/45564] New: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check zsojka at seznam dot cz
2010-09-06 22:17 ` [Bug fortran/45564] " dominiq at lps dot ens dot fr
2010-09-06 22:20 ` mikael at gcc dot gnu dot org
@ 2010-09-07 8:45 ` rguenth at gcc dot gnu dot org
2010-09-07 16:06 ` mikael at gcc dot gnu dot org
2010-09-07 16:10 ` mikael at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-09-07 8:45 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45564
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/45564] gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check
2010-09-06 20:42 [Bug fortran/45564] New: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check zsojka at seznam dot cz
` (2 preceding siblings ...)
2010-09-07 8:45 ` rguenth at gcc dot gnu dot org
@ 2010-09-07 16:06 ` mikael at gcc dot gnu dot org
2010-09-07 16:10 ` mikael at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-09-07 16:06 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from mikael at gcc dot gnu dot org 2010-09-07 16:05 -------
Subject: Bug 45564
Author: mikael
Date: Tue Sep 7 16:04:55 2010
New Revision: 163958
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163958
Log:
2010-09-07 Mikael Morin <mikael@gcc.gnu.org>
* trans-stmt.c (gfc_trans_character_select): Be conversion-safe while
checking string length value.
* trans-intrinsic.c (gfc_conv_intrinsic_char): Build integer using
gfc_charlen_type_node type.
PR fortran/45564
* trans-intrinsic.c (gfc_conv_intrinsic_transfer): Convert string
length to gfc_charlen_type_node.
2010-09-07 Mikael Morin <mikael@gcc.gnu.org>
* gfortran.dg/achar_4.f90: Enable bounds checking.
Modified:
trunk/gcc/fortran/ChangeLog
trunk/gcc/fortran/trans-intrinsic.c
trunk/gcc/fortran/trans-stmt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/gfortran.dg/achar_4.f90
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45564
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug fortran/45564] gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check
2010-09-06 20:42 [Bug fortran/45564] New: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check zsojka at seznam dot cz
` (3 preceding siblings ...)
2010-09-07 16:06 ` mikael at gcc dot gnu dot org
@ 2010-09-07 16:10 ` mikael at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: mikael at gcc dot gnu dot org @ 2010-09-07 16:10 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from mikael at gcc dot gnu dot org 2010-09-07 16:09 -------
Fixed.
--
mikael at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45564
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2010-09-07 16:10 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-06 20:42 [Bug fortran/45564] New: gfortran.dg/achar_4.f90 ICE: verify_gimple failed: type mismatch in comparison expression with -fbounds-check zsojka at seznam dot cz
2010-09-06 22:17 ` [Bug fortran/45564] " dominiq at lps dot ens dot fr
2010-09-06 22:20 ` mikael at gcc dot gnu dot org
2010-09-07 8:45 ` rguenth at gcc dot gnu dot org
2010-09-07 16:06 ` mikael at gcc dot gnu dot org
2010-09-07 16:10 ` mikael 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).