This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/11303] [3.3 regression] ICE in stor-layout.c:304 in int_mode_for_mode


------- Additional Comments From austern at apple dot com  2004-01-28 18:50 -------
Specifically, the error is that s_callbacks is supposed to be an array of pointers-to-member, and 
it's initialized with:
template <class T>
typename test<T>::callback_type test<T>::s_callbacks[] =
{
  test<T>::c1,
  test<T>::c2,
};

That's wrong.  The way you form a pointer-to-member is with &foo::bar.  The & is mandatory.  
When I fix this test it compiles without error.

-- 


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]