This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/35442] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostic with view_convert_expr
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Mar 2008 21:41:21 -0000
- Subject: [Bug c/35442] New: [4.1/4.2/4.3/4.4 regression] Completely broken diagnostic with view_convert_expr
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
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