This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c++/52567] New: constant expression not recognized as being constant
- From: "l_belev at yahoo dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Mar 2012 17:47:53 +0000
- Subject: [Bug c++/52567] New: constant expression not recognized as being constant
- Auto-submitted: auto-generated
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;
};