This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/11026] [Darwin] g++ does instantiate static data members of templates
- From: "dhazeghi at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Jun 2003 00:08:49 -0000
- Subject: [Bug c++/11026] [Darwin] g++ does instantiate static data members of templates
- References: <20030529110116.11026.john_maddock@compuserve.com>
- 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=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.