🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++
Article #337

assertion failure on nonmember vars

#337
From: Jonathan D. Becher
Date: Fri, 23 Dec 1988 02:57
35 lines
1229 bytes
PROGRAM:

class foo {}
main()
{
  int foo::i;
  printf("%d",i);
}


SYMPTOM:

g++ version 1.25.0
 /usr/local/lib/gcc-cpp+ -v -undef -D__GNU__ -D__GNUG__ -Dvax -Dunix
f1.cc /tmp/
cc012477.cpp
GNU CPP version 1.25.0
 /usr/local/lib/gcc-c++ /tmp/cc012477.cpp -quiet -dumpbase f1.cc -noreg -version -o /tmp/cc012477.s
GNU C++ version 1.25.0 (vax) compiled by GNU C version 1.25.
In function main ():
f1.cc:6: warning: implicit declaration of function `printf'
Failed assertion (form != MEMBER_TYPE) at line 626 of `convert.c'.
g++: Program c++ got fatal signal 4.


SYNOPSIS:

The declaration of `i' should have been caught as an error (right?).
Since it wasn't, the assertion fails because convert thinks that `i' is
 a member of an aggregate type.


Jon Becher
"Don't blame me. I don't code like this ...."
Technical Details
Message-ID: <80@armada.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!mailrus!rutgers!labrea!decwrl!armada!becher

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!telly!ddsw1!lll-winken!killer!osu-cis!tut.cis.ohio-state.edu!mailrus!rutgers!labrea!decwrl!armada!becher
From: becher@armada.UUCP (Jonathan D. Becher)
Newsgroups: gnu.g++
Subject: assertion failure on nonmember vars
Keywords: turkey, Key Largo, keynote
Message-ID: <80@armada.UUCP>
Date: 23 Dec 88 02:57:48 GMT
Organization: MassPar Inc., Santa Clara, CA
Lines: 34