🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

missed warnings in g++ 1.35.0 (pre-release)

#1891
From: Ron Guilmette
Date: Sat, 22 Apr 1989 21:23
11 lines
833 bytes
If you compile the following code with -Wall, you will only get one
warning to the effect that "structure has no members"  this appears
to be inconnsistant because neither of the two have any members,
so there should be *two* warning messages.

-------------------------------------------------------------------
struct base { };

struct derived : public base { };
---------------------------------------------------------------------
Technical Details
Message-ID: <8904222123.AA22649@riunite.aca.mcc.com>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!MCC.COM!rfg
From: rfg@MCC.COM (Ron Guilmette)
Newsgroups: gnu.g++.bug
Subject: missed warnings in g++ 1.35.0 (pre-release)
Message-ID: <8904222123.AA22649@riunite.aca.mcc.com>
Date: 22 Apr 89 21:23:26 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 11