http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52567

             Bug #: 52567
           Summary: constant expression not recognized as being constant
    Classification: Unclassified
           Product: gcc
           Version: unknown
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
        AssignedTo: unassig...@gcc.gnu.org
        ReportedBy: l_be...@yahoo.com


when trying to compile the following simple c++ code fragment, gcc gives error 
"error: field initializer is not constant"

class RSpans {
    public:
    static const int max_span = (1<<31)-1;
};

Reply via email to