Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!rpi!crdgw1!uunet!mcsun!ukc!keele!nott-cs!gas From: gas@cs.nott.ac.uk (Alan Shepherd) Newsgroups: comp.lang.c++ Subject: Stdargs and C++2.1 Message-ID: <1990Sep21.070857.4434@cs.nott.ac.uk> Date: 21 Sep 90 07:08:57 GMT Reply-To: gas@cs.nott.ac.uk (Alan Shepherd) Organization: Nottingham University Lines: 53 A few days ago, I sent out a query regarding AT&T C++ 2.1 and stdargs. Apparently, there is a bug in cfront which caused the problem. The following message from a guy at AT&T explains how to fix it (he may well have posted it to the news as well - sorry about any duplication): There's a bug in "src/print2.c" around line 1490-- ------------------------------ if (body && Cast==0) { for (nn=at; nn;) { nn->print(); if (nn=nn->n_list) puttok(CM); else break; } #ifdef mips if (nargs_known == ELLIPSIS) putstring(", va_alist"); #endif putch(')'); } else putch(')'); ------------------------------ should be-- ------------------------------ if (body && Cast==0) { for (nn=at; nn;) { nn->print(); if (nn=nn->n_list) puttok(CM); else break; } #ifdef mips if (nargs_known == ELLIPSIS) putstring(", va_alist"); #endif #ifdef sparc if (nargs_known == ELLIPSIS) putstring(", __builtin_va_alist"); #endif putch(')'); } else putch(')'); ------------------------------ Dennis Mancl AT&T Bell Labs - Liberty Corner Warren, NJ dmm@mozart.att.com