Article View: gnu.g++.bug
Article #1703missing warning in G++ 1.33.0 - totally private classes
From: Ron Guilmette
Date: Thu, 23 Feb 1989 18:29
Date: Thu, 23 Feb 1989 18:29
20 lines
958 bytes
958 bytes
It seem that a class which has absolutely no public or protected
member functions or data-members is totally useless. Right?
If that is true, then the declaration of any such class should
reasonable elicit a warning from the compiler.
For instance,
class x {
int x_private_data;
int x_private_method ();
};
Is silly.
// Ron Guilmette - MCC - Experimental (parallel) Systems Kit Project
// 3500 West Balcones Center Drive, Austin, TX 78759 - (512)338-3740
// ARPA: rfg@mcc.com
// UUCP: {rutgers,uunet,gatech,ames,pyramid}!cs.utexas.edu!pp!rfg
Technical Details
Message-ID:
<8902231829.AA00853@riunite.aca.mcc.com>Path:
arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfgShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!attcan!uunet!tut.cis.ohio-state.edu!MCC.COM!rfg From: rfg@MCC.COM (Ron Guilmette) Newsgroups: gnu.g++.bug Subject: missing warning in G++ 1.33.0 - totally private classes Message-ID: <8902231829.AA00853@riunite.aca.mcc.com> Date: 23 Feb 89 18:29:07 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 20