This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/52567] New: constant expression not recognized as being constant


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: unassigned@gcc.gnu.org
        ReportedBy: l_belev@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;
};


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]