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++/11026] [Darwin] g++ does instantiate static data members of templates


PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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


dhazeghi@yahoo.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   GCC host triplet|                            |powerpc-apple-darwin6
 GCC target triplet|                            |powerpc-apple-darwin6


------- Additional Comments From dhazeghi@yahoo.com  2003-06-01 00:08 -------
Hello,

On darwin, with gcc 3.3 branch, we get an ICE:
test.cpp: In member function `int test<T>::run(int) [with T = int]':
test.cpp:20: internal compiler error: in int_mode_for_mode, at stor-layout.c:
   295

with gcc mainline (20030527), we get an error:
test.cpp:37: error: conflicting types for `typename test<T>::callback_type 
   test<T>::s_callbacks[]'
test.cpp:13: error: previous declaration as `int 
   (test<T>::*test<T>::s_callbacks[])(int)'

on i686-linux, the code compiles and runs fine on both gcc 3.2 and 3.3 branch, but mainline gives 
the same error as it did on Darwin. So now to the experts: is gcc mainline right, or is the code 
right?

Dara



------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


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