stdcxx-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Sebor (JIRA)" <j...@apache.org>
Subject [jira] Created: (STDCXX-177) Sun C++ 5.8 S<T>::E not recognized as an const integral expression
Date Fri, 05 May 2006 18:02:31 GMT
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.7 (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


Mime
View raw message