This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11303] [3.3 regression] ICE in stor-layout.c:304 in int_mode_for_mode
- From: "austern at apple dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 28 Jan 2004 18:50:39 -0000
- Subject: [Bug c++/11303] [3.3 regression] ICE in stor-layout.c:304 in int_mode_for_mode
- References: <20030624053547.11303.pinskia@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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