http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55890
Bug #: 55890
Summary: calling a builtin func through a cast triggers an ICE
Classification: Unclassified
Product: gcc
Version: 4.7.3
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
AssignedTo: [email protected]
ReportedBy: [email protected]
Target: x86_64-linux-gnu
$ cat test.i
extern void *memmove(void *, void *, long unsigned int);
typedef int (*_TEST_fun_) ();
static _TEST_fun_ i = (_TEST_fun_) memmove;
main() { i(); }
$ gcc-4.7.2 -O1 -c test.i
test.i: In function ‘main’:
test.i:4:1: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.