public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
[parent not found: <bug-11393-374@http.gcc.gnu.org/bugzilla/>]
* [Bug c++/11393] New: Initializer of static const float class member is not legal in c++98
@ 2003-07-01 17:25 rearnsha at gcc dot gnu dot org
  2003-07-01 17:31 ` [Bug c++/11393] " pinskia at physics dot uc dot edu
                   ` (17 more replies)
  0 siblings, 18 replies; 32+ messages in thread
From: rearnsha at gcc dot gnu dot org @ 2003-07-01 17:25 UTC (permalink / raw)
  To: gcc-bugs

PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.

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

           Summary: Initializer of static const float class member is not
                    legal in c++98
           Product: gcc
           Version: 3.4
            Status: UNCONFIRMED
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rearnsha at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org
 GCC build triplet: any

The following code is not legal in c++ 98 (9.4.2 par 4) and should generate a
diagnostic.  As this is probably a gnu extension, it should probably only do
this when -std=c++98.

g++ -std=c++98 foo.cc

class A {  // OK
 static const int a = 1;     
};

class B {  // Not legal
 static const float pi = 3.1415926;
};


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

end of thread, other threads:[~2012-10-26 11:45 UTC | newest]

Thread overview: 32+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11393-4@http.gcc.gnu.org/bugzilla/>
2012-10-25 22:41 ` [Bug c++/11393] Initializer of static const float class member is not legal in c++98 paolo.carlini at oracle dot com
2012-10-25 23:30 ` manu at gcc dot gnu.org
2012-10-25 23:44 ` manu at gcc dot gnu.org
2012-10-25 23:49 ` rnewman at compubrite dot com
2012-10-26  0:02 ` redi at gcc dot gnu.org
2012-10-26  0:16 ` manu at gcc dot gnu.org
2012-10-26  0:24 ` manu at gcc dot gnu.org
2012-10-26  1:12 ` redi at gcc dot gnu.org
2012-10-26  1:54 ` manu at gcc dot gnu.org
2012-10-26  2:05 ` manu at gcc dot gnu.org
2012-10-26  2:13 ` redi at gcc dot gnu.org
2012-10-26 11:44 ` paolo.carlini at oracle dot com
2012-10-26 11:45 ` manu at gcc dot gnu.org
     [not found] <bug-11393-374@http.gcc.gnu.org/bugzilla/>
2007-12-02 22:11 ` pinskia at gcc dot gnu dot org
2003-07-01 17:25 [Bug c++/11393] New: " rearnsha at gcc dot gnu dot org
2003-07-01 17:31 ` [Bug c++/11393] " pinskia at physics dot uc dot edu
2003-07-02 16:43 ` rearnsha at gcc dot gnu dot org
2003-07-02 16:47 ` pinskia at physics dot uc dot edu
2003-07-02 17:06 ` rearnsha at arm dot com
2003-07-02 23:28 ` jsm28 at cam dot ac dot uk
2003-07-04 11:10 ` gdr at integrable-solutions dot net
2003-07-04 11:33 ` gdr at integrable-solutions dot net
2003-07-04 11:33 ` gdr at integrable-solutions dot net
2003-07-04 11:35 ` gdr at integrable-solutions dot net
2003-07-07 10:25 ` rearnsha at gcc dot gnu dot org
2003-07-07 10:25 ` rearnsha at gcc dot gnu dot org
2003-07-07 23:23 ` bangerth at dealii dot org
2003-08-11 15:32 ` lerdsuwa at gcc dot gnu dot org
2003-08-23  0:39 ` dhazeghi at yahoo dot com
2004-11-09 23:09 ` pinskia at gcc dot gnu dot org
2005-04-18 17:32 ` pinskia at gcc dot gnu dot org
2005-04-18 17:38 ` pinskia at gcc dot gnu dot org
2005-05-10 17:44 ` pinskia at gcc dot gnu dot org

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).