🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.bug
Article #893

GCC 2.2.2: no error messages for uninitialized const's

#893
From: Gerald Baumgartner
Date: Thu, 03 Sep 1992 21:36
20 lines
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!gb

Show 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