🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: gnu.g++.lib.bug
1 messages
1 total messages Started by Tom Epperly Mon, 21 Dec 1992 04:34
Libg++ 2.3 Error in SLList.h include file gives internal error
#328
Author: Tom Epperly
Date: Mon, 21 Dec 1992 04:34
37 lines
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.
-------------------------------------------------------------------------------
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads