🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #46485

...-arguments in gcc

#46485
From: Bjorn Halvor Solberg
Date: Fri, 18 Nov 1994 12:43
29 lines
1703 bytes
gcc-2.6.0 allowed "..." (vararg) as the first argument for
functions, but gcc-2.6.2 complains that 

test.c:1: ANSI C requires a named argument before `...'

2.6.0 gives no warning for this. 2.6.2 gives this error, regardless if
I use -ansi, -traditional or nothing. Are things supposed to be this
way (i.e. has a bug been fixed) or is this a bug? I thought
-traditional (or nothing) would allow non-ansi code to compile, if
this is a non-ANSI code problem.

Some example code is at the end (the code that gave the above
message). And I am not interested in discussions about coding, styles
etc. - I merely want to know wether this is a bug or not.

test.c:
int func(...)
{
  return 0;
}


Thanks, 

Bjorn H. Solberg		                (bhso@fou.tr.statoil.no)
Statoil R&D, Trondheim, Norway
Phone  : +47 73 58 47 29
Fax    : +47 73 96 72 86
Address: Postuttak, N-7005 TRONDHEIM, NORWAY
Technical Details
Message-ID: <1994Nov18.124356.4606@statoil.no>
Path: arc1-ca.pugleaf.net!nntp.gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!aix11.hrz.uni-oldenburg.de!nordwest.germany.eu.net!pophh!Germany.EU.net!EU.net!howland.reston.ans.net!pipex!sunic!trane.uninett.no!eunet.no!nuug!statoil!fou.tr.statoil.no!bhso

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,db6696e2a8b72a62,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1994-11-18 04:43:56 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!nntp.gmd.de!urmel.informatik.rwth-aachen.de!newsserver.rrzn.uni-hannover.de!aix11.hrz.uni-oldenburg.de!nordwest.germany.eu.net!pophh!Germany.EU.net!EU.net!howland.reston.ans.net!pipex!sunic!trane.uninett.no!eunet.no!nuug!statoil!fou.tr.statoil.no!bhso
From: bhso@fou.tr.statoil.no (Bjorn Halvor Solberg)
Subject: ...-arguments in gcc
Message-ID: <1994Nov18.124356.4606@statoil.no>
Sender: bhso@und36 (Bjorn Halvor Solberg)
Nntp-Posting-Host: 143.97.89.56
Reply-To: bhso@fou.tr.statoil.no
Organization: Statoil R&D, Trondheim
Date: Fri, 18 Nov 1994 12:43:56 GMT
Lines: 29