Article View: net.bugs
Article #295Bug in "cpp" (4.2BSD, System V, ...? )
From: laman
Date: Thu, 06 Sep 1984 00:26
Date: Thu, 06 Sep 1984 00:26
23 lines
1071 bytes
1071 bytes
Given the uninteresting macro definition:
#define x() y(a)
"Cpp" does NOT give an error message complaining about argument mismatching
for the following macro call:
x(z);
^
|
opps!
Instead it expands to:
y(a);
I think this is a bug. "Cpp" is good about giving error messages for
mismatching arguments. I don't think this as a feature.
Comments? Fixes?
Mike Laman, NCR @ Torrey Pines
UUCP: {ucbvax,philabs,sdcsla}!sdcsvax!laman
Technical Details
Message-ID:
<28@sdcsvax.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!mgnetp!ihnp4!mhuxl!ulysses!allegra!mit-eddie!genrad!decvax!ittvax!dcdwest!sdcsvax!lamanShow Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.1 6/24/83; site sdcsvax.UUCP Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!burl!mgnetp!ihnp4!mhuxl!ulysses!allegra!mit-eddie!genrad!decvax!ittvax!dcdwest!sdcsvax!laman From: laman@sdcsvax.UUCP Newsgroups: net.bugs,net.bugs.4bsd,net.bugs.usg,net.lang.c Subject: Bug in "cpp" (4.2BSD, System V, ...? ) Message-ID: <28@sdcsvax.UUCP> Date: Wed, 5-Sep-84 20:26:33 EDT Article-I.D.: sdcsvax.28 Posted: Wed Sep 5 20:26:33 1984 Date-Received: Wed, 12-Sep-84 00:58:49 EDT Organization: EECS Dept. U.C. San Diego Lines: 23