This is the mail archive of the gcc@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]

Re: static const double pi = 3.1415;


Mike Stump <mrs@apple.com> writes:

[...]

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

This is an endless debate and I don't believe we'll have the answer
this time.  However, I would suggest we issue an unconditional pedwarn
for 3.3.0 and remove that extension (was it ever documented?) in the
release after.

| class A {
|    static const double pi = 3.1415;
| } a;
| 
| This is taken from user code, Finder_FE.  :-(

Well, there are lots of broken user codes around :-/

-- Gaby


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