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

austern at apple dot com gcc-bugzilla@gcc.gnu.org
Wed Jan 28 18:50:00 GMT 2004


------- 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



More information about the Gcc-bugs mailing list