🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #2875

gcc 1.36 bug 900220_01

#2875
From: rfg
Date: Wed, 21 Feb 1990 08:14
34 lines
1504 bytes
/* gcc 1.36 bug 900221_01

   Even when the -pedantic option is used, gcc fails to issue either warnings
   or errors if the `function attributes' extension is used in declarations
   of function entities which involve typedef names.

   Also, even for the cases where the function declarations do not involve
   typedef names, the warning messages could be worded better.
*/

typedef (function_t) ();

volatile function_t volatile_function;	/* ERROR - not ANSI */
const function_t const_function;	/* ERROR - not ANSI */

volatile void function_0 () {		/* ERROR - not ANSI */
}

const void function_1 () {		/* ERROR - not ANSI */
}

/*
900220_01.c:16: warning: function declared to return const or volatile result
900220_01.c: In function function_0:
900220_01.c:17: warning: `volatile' function does return
900220_01.c: At top level:
900220_01.c:19: warning: function declared to return const or volatile result
*/

/*
// Ron Guilmette (rfg@ics.uci.edu)
// C++ Entomologist
// Motto:  If it sticks, force it.  If it breaks, it needed replacing anyway.
*/
Technical Details
Message-ID: <20559.635588091@esp.ics.uci.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ESP.ICS.UCI.EDU!rfg

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ESP.ICS.UCI.EDU!rfg
From: rfg@ESP.ICS.UCI.EDU
Newsgroups: gnu.gcc.bug
Subject: gcc 1.36 bug 900220_01
Message-ID: <20559.635588091@esp.ics.uci.edu>
Date: 21 Feb 90 08:14:51 GMT
Sender: daemon@tut.cis.ohio-state.edu
Reply-To: rfg@ics.uci.edu
Distribution: gnu
Organization: University of California, Irvine (UCI)
Lines: 34