GCC Bugzilla – Attachment 6424 Details for
Bug 15721
[4.0 regression] template instantation omits static data members
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
Test program
template-static.cc (text/plain), 362 bytes, created by
Michael Elizabeth Chastain
on 2004-05-29 02:23:32 UTC
(
hide
)
Description:
Test program
Filename:
MIME Type:
Creator:
Michael Elizabeth Chastain
Created:
2004-05-29 02:23:32 UTC
Size:
362 bytes
patch
obsolete
>template <typename T> class gnu_obj_2 >{ > public: > static int my_static; >}; > >template <typename T> int gnu_obj_2<T>::my_static = 117; > >// instantiate templates explicitly so their static members will exist >template class gnu_obj_2 <int>; >template class gnu_obj_2 <long>; > >int main () >{ > gnu_obj_2 <int> test_int; > gnu_obj_2 <long> test_long; > return 0; >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 15721
: 6424 |
6425
|
6426