public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/22356] New: mis-match types in cplxlower
@ 2005-07-07 20:56 pinskia at gcc dot gnu dot org
  2005-07-07 20:56 ` [Bug tree-optimization/22356] " pinskia at gcc dot gnu dot org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-07 20:56 UTC (permalink / raw)
  To: gcc-bugs

Take the following code:
typedef _Complex float GFC_COMPLEX_4;
void product_c4 (GFC_COMPLEX_4 *src, GFC_COMPLEX_4 *dest, int len)
{
  int n;
  GFC_COMPLEX_4 result;
  for (n = 0; n < len; n++, src += 1)
    result *= *src;
  *dest = result;
}

We get a mis-match type after cplxlower:
t.c: In function 'product_c4':
t.c:4: error: statement types mismatch
result$realD.1290_28 = REALPART_EXPR <resultD.1270_10>;

floatD.21
GFC_COMPLEX_4D.1263
t.c:4: error: statement types mismatch
result$imagD.1291_29 = IMAGPART_EXPR <resultD.1270_10>;

floatD.21
GFC_COMPLEX_4D.1263

-- 
           Summary: mis-match types in cplxlower
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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


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

end of thread, other threads:[~2005-07-08 18:06 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-07 20:56 [Bug tree-optimization/22356] New: mis-match types in cplxlower pinskia at gcc dot gnu dot org
2005-07-07 20:56 ` [Bug tree-optimization/22356] " pinskia at gcc dot gnu dot org
2005-07-07 20:57 ` pinskia at gcc dot gnu dot org
2005-07-07 21:02 ` pinskia at gcc dot gnu dot org
2005-07-07 21:07 ` pinskia at gcc dot gnu dot org
2005-07-07 21:12 ` pinskia at gcc dot gnu dot org
2005-07-08 17:23 ` pinskia at gcc dot gnu dot org
2005-07-08 18:05 ` cvs-commit at gcc dot gnu dot org
2005-07-08 18:06 ` pinskia 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).