Created attachment 24437 [details] testcase $ g++46 0x.ii -c -std=gnu++0x camellia.cpp: In member function 'virtual void CryptoPP::Camellia::Base::ProcessAndXorBlock(const byte*, const byte*, byte*) const': camellia.cpp:213:31: internal compiler error: in cxx_eval_indirect_ref, at cp/semantics.c:6795
Started http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=170488 Smaller testcase for -std=c++0x: typedef unsigned T; struct S { T foo (void); static unsigned s1[16]; }; T S::foo () { T u = *(T *) (s1 + 10); return u; }
Author: jason Date: Tue Jun 14 18:15:43 2011 New Revision: 175041 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175041 Log: PR c++/49290 * semantics.c (cxx_fold_indirect_ref): Local, more permissive copy of fold_indirect_ref_1. (cxx_eval_indirect_ref): Use it. Added: trunk/gcc/testsuite/g++.dg/cpp0x/constexpr-array-ptr7.C Modified: trunk/gcc/cp/ChangeLog trunk/gcc/cp/semantics.c trunk/gcc/testsuite/ChangeLog
Author: jason Date: Tue Jun 14 22:13:19 2011 New Revision: 175058 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=175058 Log: PR c++/49290 * semantics.c (cxx_eval_indirect_ref): Remove assert. Added: branches/gcc-4_6-branch/gcc/testsuite/g++.dg/cpp0x/regress/49290.C Modified: branches/gcc-4_6-branch/gcc/cp/ChangeLog branches/gcc-4_6-branch/gcc/cp/semantics.c
Fixed for 4.6.1.