🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.help
Article #909

double& rd2 = 2.0; // error?

#909
From: David Bowser-Chao
Date: Thu, 29 Feb 1996 18:28
25 lines
1836 bytes
Looking at the April 1995 working draft proposal,
the fragment:

   double& rd2 = 2.0; 

is deemed illegal (non-const references are not initialized from 
temporaries) but the GNU g++ 2.7.2 as well as the DEC VMS compiler 
(current release, don't remember, as well as the version I'm 
field-testing) allow this statement with a mere warning.

This seems like a very basic thing to *fix* - am I missing something 
here, is this supposed to be an error, or since April has the committee 
changed its mind(s)?
-- 
David Bowser-Chao               | http://www.pa.msu.edu/people/davechao
High Energy Theoretical Physics | davechao@cteq07.pa.msu.edu
Michigan State University       |
(517) 432-1668                  |
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your 
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu 
]
Technical Details
Message-ID: <3135D175.87E@cteq07.pa.msu.edu>
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!chronicle.mti.sgi.com!austern
From: David Bowser-Chao <davechao@cteq07.pa.msu.edu>
Newsgroups: gnu.g++.help,comp.lang.c++,comp.std.c++
Subject: double& rd2 = 2.0;  // error?
Date: 29 Feb 1996 10:28:45 PST
Organization: High Energy Theory Group, Michigan State U.
Approved: austern@isolde.mti.sgi.com
Message-ID: <3135D175.87E@cteq07.pa.msu.edu>
Reply-To: davechao@cteq07.pa.msu.edu
NNTP-Posting-Host: isolde.mti.sgi.com
X-Original-Date: Thu, 29 Feb 1996 12:16:53 -0400
X-Mailer: Mozilla 2.0b6a (Macintosh; I; 68K)
X-Auth: PGPMoose V1.1 PGP comp.std.c++
 iQBVAwUBMTXwbUy4NqrwXLNJAQEphAH/e5nSShgqAEa+SptONn7T/sMyH7pHhkI0
 tzMgV1WuPIAPSEoHQpNC+/UlbrIEVXcSFCSKqErTY64myJ4fZGpU4A==
 =YaHx
Originator: austern@isolde.mti.sgi.com