Article View: comp.unix.programmer
Article #3528Re: Should C/C++ compilers be smart enough to catch this???
From: KJK::Hyperion
Date: Thu, 03 Apr 2003 23:23
Date: Thu, 03 Apr 2003 23:23
8 lines
1792 bytes
1792 bytes
> Shouldn't compilers be smart enough to not create code that corrupts > when it is pretty straighforward to realize that (1) there is an > obvious discrepancy, for which a warning can easily be issued, did you try the -W -Wall options? AFAIR, no return statement in a non- void function *is* a candidate for a warning (e.g. the Borland compiler is especially smart to catch such execution path-related bugs), altough GCC by default is somewhat quiet
Technical Details
Message-ID:
<Xns9353F5B42037hyperion@193.70.192.192>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mailReferences:
<3E8C8C4F.ABC60B0F@doe.carleton.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,2ca0bb2ef0ae6ada
X-Google-Attributes: gid11318c,public
X-Google-Thread: fc89c,2ca0bb2ef0ae6ada
X-Google-Attributes: gidfc89c,public
X-Google-ArrivalTime: 2003-04-03 15:23:41 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.vmunix.org!newsfeed01.sul.t-online.de!t-online.de!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail
Newsgroups: comp.unix.programmer,gnu.gcc.help
Subject: Re: Should C/C++ compilers be smart enough to catch this???
From: "KJK::Hyperion" <noog@libero.it>
References: <3E8C8C4F.ABC60B0F@doe.carleton.ca>
Message-ID: <Xns9353F5B42037hyperion@193.70.192.192>
User-Agent: Xnews/5.04.25
X-Face: [/Tw8@S`6MmtV0q&hKEi)Hhy/%/k^@8Jy(6A=g\\2A:qvcq05W><'qDj<D*7l\!vtF;"AG[(tYMws@6cNi9DG.M3$>E6C\Eh-#t~u}vV.O=h<m43(L>c%zEE~V3?_'gK@#o"q7F[P?BMeX{T%02#Sh}"!H6WV=N4/3^v{rH0>2@DrWfiS&SF&6G+;K/hD,e
Mime-Version: 1.0
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
Lines: 8
Date: Thu, 03 Apr 2003 23:23:26 GMT
NNTP-Posting-Host: 151.25.172.180
X-Complaints-To: abuse@libero.it
X-Trace: twister2.libero.it 1049412206 151.25.172.180 (Fri, 04 Apr 2003 01:23:26 MET DST)
NNTP-Posting-Date: Fri, 04 Apr 2003 01:23:26 MET DST
Organization: [Infostrada]