Article View: gnu.g++.bug
Article #1002Re: Gnu C bug in '...' wild arg specification
From: Fergus James HENDERSON
Date: Thu, 01 Oct 1992 07:58
Date: Thu, 01 Oct 1992 07:58
22 lines
1579 bytes
1579 bytes
A.APPLEYARD@fs1.mt.umist.ac.UK writes: >After an unexpected compiler error remark in compiling a program, I compiled >this test program with a recent version of Gnu C++, and I got this error:- > >t$$.cc: In function `int main()': >t$$.cc:7: warning: cannot pass objects of type `Complex' through `...' > >Why does '...' accept structs but not classes? I have found nothing in (two >good Gnu C++ manuals that I have) about restrictions about what can be passed >through '...'. What other restrictions are there about '...'? You cannot pass objects with constructors or operator= through '...' (I can't find a reference to this in C++PL 2nd Ed. right now, but Cfront 2.0 also rejects your program.) This is a restriction in the language, not a problem with g++. -- Fergus Henderson fjh@munta.cs.mu.OZ.AU This .signature virus is a self-referential statement that is true - but you will only be able to consistently believe it if you copy it to your own .signature file!
Technical Details
Message-ID:
<9227517.23452@mulga.cs.mu.OZ.AU>Path:
arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!munta.cs.mu.oz.au!fjhReferences:
<MAILQUEUE-101.920930120855.851@fs1.metallurgy.umist.ac.uk>Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.bug Path: arc1-ca.pugleaf.net!sparky!uunet!convex!darwin.sura.net!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!munta.cs.mu.oz.au!fjh From: fjh@munta.cs.mu.oz.au (Fergus James HENDERSON) Subject: Re: Gnu C bug in '...' wild arg specification Message-ID: <9227517.23452@mulga.cs.mu.OZ.AU> Sender: gnulists@ai.mit.edu Organization: Computer Science, University of Melbourne, Australia References: <MAILQUEUE-101.920930120855.851@fs1.metallurgy.umist.ac.uk> Distribution: gnu Date: Thu, 1 Oct 1992 07:58:37 GMT Approved: bug-g++@prep.ai.mit.edu Lines: 23