[ http://issues.apache.org/jira/browse/STDCXX-177?page=comments#action_12412419 ]
Martin Sebor commented on STDCXX-177: ------------------------------------- The 121017-01 patch for 5.8 fixes the bug: $ CC -V -c t.cpp CC: Sun C++ 5.8 Patch 121017-01 2005/12/11 ccfe: Sun C++ 5.8 Patch 121017-01 2005/12/11 > Sun C++ 5.8 S<T>::E not recognized as an const integral expression > ------------------------------------------------------------------ > > Key: STDCXX-177 > URL: http://issues.apache.org/jira/browse/STDCXX-177 > Project: C++ Standard Library > Type: Bug > Components: External > Environment: Sun C++ 5.5 through 5.8 (but not 5.3) > Reporter: Martin Sebor > > The following well-formed snippet fails to compile: > $ cat t.cpp && CC -V -c t.cpp > template <class> struct S { enum { E = 1 }; static int i []; }; > template <class T> int S<T>::i [S<T>::E]; > CC: Sun C++ 5.8 2005/10/13 > ccfe: Sun C++ 5.8 2005/10/13 > "t.cpp", line 2: Error: An integer constant expression is required within the > array subscript operator. > 1 Error(s) detected. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira
