public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
* static const double pi = 3.1415;
@ 2003-02-16  2:21 Mike Stump
  2003-02-17 15:02 ` Gabriel Dos Reis
  2003-02-18  8:55 ` Mark Mitchell
  0 siblings, 2 replies; 27+ messages in thread
From: Mike Stump @ 2003-02-16  2:21 UTC (permalink / raw)
  To: gcc

Ack!  I think this patch is going to screw the 3.3 release:

2002-12-09  Mark Mitchell  <mark@codesourcery.com>

         * NEWS: Document removal of in-class initialization extension 
for
         static data members of non-arithmetic, non-enumeration type.
         * decl.c (check_static_variable_definition): Do not allow that
         extension.
         * decl2.c (grokfield): Do not call digest_init when processing
         templates.

While technically correct, we generally pedwarn such things for a year 
or two or five to let people fix their broken code.  Going straight 
from GNU language feature to error will impact people.  If not pedwarn, 
then -fpermissive.

Thoughts?  I have a patch to do this, if we like the general idea.

Remind me, why was it really important to not let people use doubles?

class A {
   static const double pi = 3.1415;
} a;

This is taken from user code, Finder_FE.  :-(

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

end of thread, other threads:[~2003-02-21 16:40 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-02-16  2:21 static const double pi = 3.1415; Mike Stump
2003-02-17 15:02 ` Gabriel Dos Reis
2003-02-18  8:55 ` Mark Mitchell
2003-02-18  9:12   ` Gabriel Dos Reis
2003-02-18 16:26     ` Mark Mitchell
2003-02-18 18:10       ` Joe Buck
2003-02-18 20:03         ` Phil Edwards
2003-02-18 20:29           ` Mark Mitchell
2003-02-18 22:27             ` Mike Stump
2003-02-19 18:24               ` Mark Mitchell
2003-02-20 20:38                 ` Mike Stump
2003-02-20 21:16                   ` Mark Mitchell
2003-02-19  7:55       ` Gabriel Dos Reis
2003-02-19 15:57         ` Mike Stump
2003-02-19 16:21           ` Gabriel Dos Reis
2003-02-19 17:12           ` Nathan Sidwell
2003-02-19 17:34             ` Mike Stump
2003-02-19 17:37               ` Nathan Sidwell
2003-02-19 17:44                 ` Nathan Sidwell
2003-02-19 18:18                 ` Mike Stump
2003-02-20 12:04                   ` Nathan Sidwell
2003-02-20 19:52                     ` Mike Stump
2003-02-19  8:52   ` Kai Henningsen
2003-02-19  9:22     ` Gabriel Dos Reis
2003-02-20 22:42       ` Kai Henningsen
2003-02-21  9:09         ` Gabriel Dos Reis
2003-02-21 16:48         ` Olivier Galibert

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