Compiling the following code with gcc-4.0.0 (20050219), (ld-2.15) will result in an error at link time complaining about all_set being an unresolved symbol. This is a regression compared to the version some weeks ago. ----------------------------------------------------------- template<typename T>struct A { static const T all_clr = T(0); static const T all_set = ~all_clr; }; int main() { A<int> bf; return(bf.all_set); } -----------------------------------------------------------
-- Summary: Unresolved dependent "static const" symbol in template Product: gcc Version: 4.0.0 Status: UNCONFIRMED Severity: normal Priority: P2 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: wwieser at gmx dot de CC: gcc-bugs at gcc dot gnu dot org GCC build triplet: i686-linux-gnu GCC host triplet: i686-linux-gnu GCC target triplet: i686-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20098