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 target/11303] [3.3/3.4 regression] ICE in stor-layout.c:304 in int_mode_for_mode


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


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