This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 5 Jul 2003 20:11:50 -0000
- Subject: [Bug target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode
- References: <20030624053547.11303.pinskia@physics.uc.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=11303
dhazeghi at yahoo dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2003-07-05 20:11:50
date| |
Summary|ICE in stor-layout.c:304 in |[3.3/3.4 regression] ICE in
|int_mode_for_mode |stor-layout.c:304 in
| |int_mode_for_mode
------- Additional Comments From dhazeghi at yahoo dot com 2003-07-05 20:11 -------
Question: is this code valid? On i686-linux (mainline and branch), I get:
int test<T>::run(int) int main() int test<T>::run(int) [with T = int]
foo.cc: At global scope:
foo.cc: In instantiation of `int (test<int>::*test<int>::s_callbacks[2])(int)':
foo.cc:17: instantiated from `int test<T>::run(int) [with T = int]'
foo.cc:32: instantiated from here
foo.cc:22: error: invalid use of non-static member function
gcc 3.2.3 and earlier (on powerpc-darwin and i686-linux) give:
foo.cc: In instantiation of `int (test<int>::*test<int>::s_callbacks[])(int)':
foo.cc:17: instantiated from `int test<T>::run(int) [with T = int]'
foo.cc:32: instantiated from here
foo.cc:22: assuming pointer to member `int test<T>::c1(int) [with T = int]'
foo.cc:22: (a pointer to member can only be formed with `&test<T>::c1(int)
[with T = int]')
I can confirm the ICE with mainline and branch on powerpc-darwin (20030705).