public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/35442]  New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostic with view_convert_expr
@ 2008-03-03 21:42 reichelt at gcc dot gnu dot org
  2008-03-03 21:42 ` [Bug c/35442] " reichelt at gcc dot gnu dot org
                   ` (5 more replies)
  0 siblings, 6 replies; 7+ messages in thread
From: reichelt at gcc dot gnu dot org @ 2008-03-03 21:42 UTC (permalink / raw)
  To: gcc-bugs

A broken diagnostic is issued for the following invalid code snippet
since GCC 4.0.2:

==================================================
typedef char A __attribute__((vector_size(8)));
typedef int  B __attribute__((vector_size(8)));

void foo(A a)
{
  ((B)a)();
}
==================================================

#'view_convert_expr' not supported by pp_c_expression#'bugD3.c: In function
'foo':
bug.c:6: error: called object  is not a function
bug.c:5: warning: MMX vector argument without MMX enabled changes the ABI

Similar to PR35441.


-- 
           Summary: [4.1/4.2/4.3/4.4 regression] Completely broken
                    diagnostic with view_convert_expr
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: diagnostic, monitored
          Severity: normal
          Priority: P3
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: reichelt at gcc dot gnu dot org


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


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

end of thread, other threads:[~2008-12-08 18:12 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-03-03 21:42 [Bug c/35442] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostic with view_convert_expr reichelt at gcc dot gnu dot org
2008-03-03 21:42 ` [Bug c/35442] " reichelt at gcc dot gnu dot org
2008-03-15 19:01 ` [Bug c/35442] [4.1/4.2/4.3/4.4 Regression] " rguenth at gcc dot gnu dot org
2008-07-04 22:39 ` [Bug c/35442] [4.2/4.3/4.4 " jsm28 at gcc dot gnu dot org
2008-08-12 18:49 ` aldyh at gcc dot gnu dot org
2008-12-08 18:06 ` jakub at gcc dot gnu dot org
2008-12-08 18:12 ` jakub 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).