public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/52567] New: constant expression not recognized as being constant
@ 2012-03-12 17:48 l_belev at yahoo dot com
  2012-03-12 18:10 ` [Bug c++/52567] " marc.glisse at normalesup dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: l_belev at yahoo dot com @ 2012-03-12 17:48 UTC (permalink / raw)
  To: gcc-bugs

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;
};


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2012-03-12 21:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-12 17:48 [Bug c++/52567] New: constant expression not recognized as being constant l_belev at yahoo dot com
2012-03-12 18:10 ` [Bug c++/52567] " marc.glisse at normalesup dot org
2012-03-12 18:29 ` paolo.carlini at oracle dot com
2012-03-12 20:56 ` l_belev at yahoo dot com
2012-03-12 21:00 ` pinskia at gcc dot gnu.org
2012-03-12 21:08 ` l_belev at yahoo dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).