You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@stdcxx.apache.org by "Martin Sebor (JIRA)" <ji...@apache.org> on 2007/03/23 16:31:32 UTC

[jira] Updated: (STDCXX-177) [Sun C++ 5.8] S::E not recognized as an const integral expression

     [ https://issues.apache.org/jira/browse/STDCXX-177?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Sebor updated STDCXX-177:
--------------------------------

    Summary: [Sun C++ 5.8] S<T>::E not recognized as an const integral expression  (was: Sun C++ 5.8 S<T>::E not recognized as an const integral expression)

> [Sun C++ 5.8] S<T>::E not recognized as an const integral expression
> --------------------------------------------------------------------
>
>                 Key: STDCXX-177
>                 URL: https://issues.apache.org/jira/browse/STDCXX-177
>             Project: C++ Standard Library
>          Issue 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.
-
You can reply to this email to add a comment to the issue online.