Article View: gnu.g++.lib.bug
Article #328Libg++ 2.3 Error in SLList.h include file gives internal error
From: Tom Epperly
Date: Mon, 21 Dec 1992 04:34
Date: Mon, 21 Dec 1992 04:34
37 lines
2028 bytes
2028 bytes
There is a simple error in the SLList.h include file which allows it
to be included multiple times. Here is a patch:
23c23
< #define _SLList_h 1
---
> #define _LList_h 1
Including it twice on a DECstation 3100 running Ultrix 4.2 and gcc
2.3.2, gives an internal error.
// test program
#include<SLList.h>
#include<SLList.h>
main()
{
SLList<int> intlist;
}
/usr/local/lib/g++-include/SLList.h:28: redefinition of `struct BaseSLNode'
/usr/local/lib/g++-include/SLList.h:46: redefinition of `struct BaseSLList'
/usr/local/lib/g++-include/SLList.h:53: ambiguous method `BaseSLList::BaseSLList ()' in structure
/usr/local/lib/g++-include/SLList.h:64: ambiguous method `void * BaseSLList::prepend (struct BaseSLNode*)' in structure
/usr/local/lib/g++-include/SLList.h:65: ambiguous method `void * BaseSLList::append (struct BaseSLNode*)' in structure
In file included from BnBList.cc:26:
/usr/local/lib/g++-include/SLList.h:113: Internal compiler error.
/usr/local/lib/g++-include/SLList.h:113: Please report this to `bug-g++@prep.ai.mit.edu'.
--
-------------------------------------------------------------------------------
Tom Epperly University of Wisconsin-Madison Chemical Engineering
(608) 262-8264 epperly@osnome.che.wisc.edu Graduate Student
Member of the League for Programming Freedom(fighting software monopolies)
For more info contact me or lpf@uunet.uu.net.
If you feel you must flame, please send email rather than posting.
-------------------------------------------------------------------------------
Technical Details
Message-ID:
<9212211634.AA16939@osnome.che.wisc.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osnome.che.wisc.edu!epperlyShow Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!osnome.che.wisc.edu!epperly From: epperly@osnome.che.wisc.edu (Tom Epperly) Subject: Libg++ 2.3 Error in SLList.h include file gives internal error Message-ID: <9212211634.AA16939@osnome.che.wisc.edu> Sender: gnulists@ai.mit.edu Organization: GNUs Not Usenet Distribution: gnu Date: Mon, 21 Dec 1992 04:34:10 GMT Approved: bug-lib-g++@prep.ai.mit.edu Lines: 38