🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

-Wpointer-arith warnings overzealous in g++ 2.3.1

#1112
From: lewis
Date: Sun, 08 Nov 1992 07:22
17 lines
911 bytes
/*
 * I'm not sure the warning here is entirely justified (useful).
 *
 * The file is compiled with gcc 2.3.1 as follows:
 *      g++ -c -Wpointer-arith bug.c
 *
 * and the output is:
 *
 *      bug.c: In function `void  fred ()':
 *      bug.c:15: warning: ANSI C forbids taking the sizeof a void type
 */
void    fred ()
{
    void* p = new char [100];
    delete p;
}
Lewis Gordon Pringle, Jr.                                (lewis@sophists.com)
Technical Details
Message-ID: <m0moGLe-000AWzC@sophists.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sophists.COM!lewis

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!ames!saimiri.primate.wisc.edu!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!sophists.COM!lewis
From: lewis@sophists.COM
Subject: -Wpointer-arith warnings overzealous in g++ 2.3.1
Message-ID: <m0moGLe-000AWzC@sophists.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Sun, 8 Nov 1992 07:22:54 GMT
Approved: bug-g++@prep.ai.mit.edu
Lines: 19