Article View: comp.std.c
Article #4469Is a compiler diagnostic required?
From: Tanmoy Bhattacharya
Date: Thu, 14 Dec 1995 15:43
Date: Thu, 14 Dec 1995 15:43
24 lines
1131 bytes
1131 bytes
Is a compiler required to diagnose the mismatch of parameter types:
void f(va_list*);
void g(int x,...) {
va_list y;
va_start (y,x);
f(y);
va_end(y);
}
Or can the implementation allow it without warning?
(Consider va_list == void* for example of why an implementation may want to
do it).
Cheers
Tanmoy
--
tanmoy@qcd.lanl.gov(128.165.23.46) DECNET: BETA::"tanmoy@lanl.gov"(1.218=1242)
Tanmoy Bhattacharya O:T-8(MS B285)LANL,NM87545 H:#9,3000,Trinity Drive,NM87544
Others see <gopher://yaleinfo.yale.edu:7700/00/Internet-People/internet-mail>,
<http://alpha.acast.nova.edu/cgi-bin/inmgq.pl>or<ftp://csd4.csd.uwm.edu/pub/
internetwork-mail-guide>. -- <http://nqcd.lanl.gov/people/tanmoy/tanmoy.html>
fax: 1 (505) 665 3003 voice: 1 (505) 665 4733 [ Home: 1 (505) 662 5596 ]
Technical Details
Message-ID:
<4apgml$98i@newshost.lanl.gov>Path:
arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoyShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!qcd.lanl.gov!tanmoy From: tanmoy@qcd.lanl.gov (Tanmoy Bhattacharya) Newsgroups: comp.std.c Subject: Is a compiler diagnostic required? Date: 14 Dec 1995 15:43:17 GMT Organization: Los Alamos National Laboratory Distribution: world Message-ID: <4apgml$98i@newshost.lanl.gov> NNTP-Posting-Host: qcd.lanl.gov