Article View: gnu.g++.bug
Article #893GCC 2.2.2: no error messages for uninitialized const's
From: Gerald Baumgartner
Date: Thu, 03 Sep 1992 21:36
Date: Thu, 03 Sep 1992 21:36
20 lines
743 bytes
743 bytes
Given the class declaration
class c { public: int foo (void); };
the declaration
const c o;
produces the error message
stdin:2: uninitialized const `o'
I would expect similar behavior for the declarations
const int i;
c * const p;
but both pass without an error message.
--Gerald
Technical Details
Message-ID:
<19430@ector.cs.purdue.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.purdue.edu!gbShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!cis.ohio-state.edu!cs.purdue.edu!gb From: gb@cs.purdue.edu (Gerald Baumgartner) Subject: GCC 2.2.2: no error messages for uninitialized const's Message-ID: <19430@ector.cs.purdue.edu> Sender: gnulists@ai.mit.edu Organization: Department of Computer Science, Purdue University Distribution: gnu Date: Thu, 3 Sep 1992 21:36:28 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 21