delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/08/15/14:15:51

From: Endlisnis <s257m AT unb DOT ca>
Newsgroups: comp.os.msdos.djgpp
Subject: "Abort!"
Date: Sat, 15 Aug 1998 13:35:00 -0300
Organization: NBTel Internet
Lines: 24
Message-ID: <35D5B8B2.E3CE9271@unb.ca>
NNTP-Posting-Host: fctnts13c03.nbnet.nb.ca
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

    What does mean when cc1plus.exe (called from withing RHIDE with the -v
switch) stops and says "Abort!".  I believe the line that caused it was a
prototype of a member function which had a default parameter which was
another class type:

VarBits Find(byte Fnd, VarBits Val = (VarBits){0,0});

Is there anything wrong with this?  It has now stoped "Abort!"ing and
compains:
Bits.cc(13) Error: type specifier omitted for parameter
Bits.cc(13) Error: parse error before `0'

If I leave out the default value for the prototype and just put it in the
declaration, everything works fine.

--
     (\/) Endlisnis (\/)
          s257m AT unb DOT ca
          Endlisnis AT GeoCities DOT com
          Endlis AT nbnet DOT nb DOT ca




- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019