public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/31608]  New: wrong types in array transfer
@ 2007-04-17 16:22 rguenth at gcc dot gnu dot org
  2007-04-17 16:27 ` [Bug fortran/31608] " tobi at gcc dot gnu dot org
                   ` (66 more replies)
  0 siblings, 67 replies; 69+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-04-17 16:22 UTC (permalink / raw)
  To: gcc-bugs

gfortran.dg/achar_4.f90 generates the following snippet of original trees:

    {
      int8 S.5;

      S.5 = 0;
      while (1)
        {
          if (S.5 > (D.1394 + 0) - 1) goto L.1;
          {
            char char.6;

            char.6 = (*(char[0:][1:1] *) atmp.0.data)[S.5][1]{lb: 1 sz: 1} +
224;
            (*(char[0:][1:1] *) atmp.4.data)[S.5] = *(_gfortran_compare_string
(D.1384, &(*(char[0:][1:1] *) atmp.2.data)[S.5], 1, "a") >= 0 &&
_gfortran_compare_string (D.1393, &(*(char[0:][1:1] *) atmp.3.data)[S.5], 1,
"z") <= 0 ? &char.6 : &(*(char[0:][1:1] *) atmp.1.data)[S.5]);
          }
          S.5 = S.5 + 1;
        }
      L.1:;
    }

which clearly has mismatched types in the two arms of the COND_EXPR

  .... = .... ? &char.6 : &(*(char[0:][1:1] *) atmp.1.data)[S.5])

the then arm is of type char* while the else arm has pointer to array type.

This confuses the middle-end.


-- 
           Summary: wrong types in array transfer
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: wrong-code
          Severity: normal
          Priority: P3
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2007-11-20  5:07 UTC | newest]

Thread overview: 69+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-04-17 16:22 [Bug fortran/31608] New: wrong types in array transfer rguenth at gcc dot gnu dot org
2007-04-17 16:27 ` [Bug fortran/31608] " tobi at gcc dot gnu dot org
2007-04-18  8:36 ` pault at gcc dot gnu dot org
2007-04-18  9:21 ` burnus at gcc dot gnu dot org
2007-04-18  9:44 ` pault at gcc dot gnu dot org
2007-04-18 22:56 ` tobi at gcc dot gnu dot org
2007-04-19  6:44 ` burnus at gcc dot gnu dot org
2007-04-19  8:08 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2007-04-19  9:38 ` pault at gcc dot gnu dot org
2007-04-19 11:08 ` rguenth at gcc dot gnu dot org
2007-04-19 14:21 ` pault at gcc dot gnu dot org
2007-04-19 14:56 ` rguenth at gcc dot gnu dot org
2007-05-31 20:40 ` [Bug fortran/31608] wrong types in character array/scalar binop pault at gcc dot gnu dot org
2007-07-03 10:40 ` fxcoudert at gcc dot gnu dot org
2007-07-10 23:36 ` pinskia at gcc dot gnu dot org
2007-07-11  8:36 ` rguenther at suse dot de
2007-07-11  8:52 ` jv244 at cam dot ac dot uk
2007-07-11  9:55 ` rguenth at gcc dot gnu dot org
2007-07-11 10:01 ` rguenth at gcc dot gnu dot org
2007-07-11 10:13 ` rguenth at gcc dot gnu dot org
2007-07-11 10:25 ` jv244 at cam dot ac dot uk
2007-10-03  8:09 ` fxcoudert at gcc dot gnu dot org
2007-10-05 17:41 ` fxcoudert at gcc dot gnu dot org
2007-10-05 21:59 ` fxcoudert at gcc dot gnu dot org
2007-10-05 22:02 ` fxcoudert at gcc dot gnu dot org
2007-10-06 21:47 ` dominiq at lps dot ens dot fr
2007-10-07 12:49 ` pault at gcc dot gnu dot org
2007-10-08  8:47 ` rguenther at suse dot de
2007-10-10  7:06 ` pault at gcc dot gnu dot org
2007-10-10 15:45 ` pault at gcc dot gnu dot org
2007-10-10 15:47 ` rguenther at suse dot de
2007-10-11  5:17 ` pault at gcc dot gnu dot org
2007-10-11 10:17 ` dominiq at lps dot ens dot fr
2007-10-12 17:32 ` pault at gcc dot gnu dot org
2007-10-12 20:31 ` dominiq at lps dot ens dot fr
2007-10-20  4:22 ` patchapp at dberlin dot org
2007-10-20  9:27 ` pault at gcc dot gnu dot org
2007-10-20  9:36 ` pault at gcc dot gnu dot org
2007-10-25  2:31 ` danglin at gcc dot gnu dot org
2007-10-25  2:39 ` dave at hiauly1 dot hia dot nrc dot ca
2007-10-25  6:36 ` burnus at gcc dot gnu dot org
2007-10-25 15:41 ` dave at hiauly1 dot hia dot nrc dot ca
2007-10-25 15:48 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2007-10-25 16:01 ` rguenther at suse dot de
2007-10-25 18:03 ` dave at hiauly1 dot hia dot nrc dot ca
2007-10-25 18:17 ` burnus at gcc dot gnu dot org
2007-10-25 19:51 ` Tobias dot Schlueter at physik dot uni-muenchen dot de
2007-10-25 20:45   ` Andrew Pinski
2007-10-25 20:45 ` pinskia at gmail dot com
2007-10-25 20:58 ` dave at hiauly1 dot hia dot nrc dot ca
2007-10-25 23:17 ` dave at hiauly1 dot hia dot nrc dot ca
2007-10-26 22:17 ` rguenth at gcc dot gnu dot org
2007-10-27  0:21 ` danglin at gcc dot gnu dot org
2007-10-27  0:29 ` dave at hiauly1 dot hia dot nrc dot ca
2007-10-27 19:58 ` burnus at gcc dot gnu dot org
2007-10-27 20:03 ` rguenther at suse dot de
2007-11-12 14:05 ` pault at gcc dot gnu dot org
2007-11-13  3:46 ` jvdelisle at gcc dot gnu dot org
2007-11-13  6:34 ` jvdelisle at gcc dot gnu dot org
2007-11-13  7:56 ` dominiq at lps dot ens dot fr
2007-11-14  1:35 ` jvdelisle at gcc dot gnu dot org
2007-11-14 10:37 ` pault at gcc dot gnu dot org
2007-11-16  9:24 ` pault at gcc dot gnu dot org
2007-11-16  9:50 ` rguenther at suse dot de
2007-11-16 17:02 ` pault at gcc dot gnu dot org
2007-11-18 17:14 ` pault at gcc dot gnu dot org
2007-11-18 17:16 ` pault at gcc dot gnu dot org
2007-11-20  5:02 ` patchapp at dberlin dot org
2007-11-20  5:07 ` patchapp at dberlin 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).