http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52672
Bug #: 52672 Summary: internal compiler error: in cxx_eval_indirect_ref, at cp/semantics.c:6766 Classification: Unclassified Product: gcc Version: 4.6.4 Status: UNCONFIRMED Severity: major Priority: P3 Component: c++ AssignedTo: unassig...@gcc.gnu.org ReportedBy: mead...@codesourcery.com Reproduced on a fresh 4.6 release branch build: $ cat ~/etc/bugs/issue13031.cpp typedef void (*func_t)(unsigned long); typedef unsigned long * ul_ptr; void foo (unsigned long ul) { ((func_t)((ul_ptr)(((ul_ptr)0x01000010)[14]))[0])(ul); } $ ./install/bin/arm-none-eabi-gcc --version arm-none-eabi-gcc (GCC) 4.6.4 20120322 (prerelease) Copyright (C) 2011 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. $ ./install/bin/arm-none-eabi-gcc -std=gnu++0x ~/etc/bugs/issue13031.cpp /home/meadori/etc/bugs/issue13031.cpp: In function 'void foo(long unsigned int)': /home/meadori/etc/bugs/issue13031.cpp:7:50: internal compiler error: in cxx_eval_indirect_ref, at cp/semantics.c:6766 Please submit a full bug report, with preprocessed source if appropriate. See <http://gcc.gnu.org/bugs.html> for instructions.