This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
bug report in gcc-2.8.1 and egcs-1.1.1
- To: egcs-bugs at egcs dot cygnus dot com
- Subject: bug report in gcc-2.8.1 and egcs-1.1.1
- From: Jean-Francois Patenaude <patch at casi dot polymtl dot ca>
- Date: Wed, 29 Sep 1999 21:00:49 -0400 (EDT)
- Reply-To: patch at casi dot polymtl dot ca
Hi, I found a bug in both gcc-2.8.1 and egcs-1.1.1 ...
laplace:~/poly/projet-maitrise/parsers/asg-parser $ /usr/local/gcc-2.8.1/bin/g++ -o bug bug.C
bug.C: In function `int main(...)':
bug.C:15: Internal compiler error.
bug.C:15: Please submit a full bug report to `bug-g++@prep.ai.mit.edu'.
laplace:~/poly/projet-maitrise/parsers/asg-parser $ /usr/local/egcs-1.1.1/bin/g++ -o bug bug.C
bug.C: In function `int main(...)':
bug.C:15: Internal compiler error.
bug.C:15: Please submit a full bug report to `egcs-bugs@cygnus.com'.
bug.C:15: See <URL:http://egcs.cygnus.com/faq.html#bugreport> for details.
laplace:~/poly/projet-maitrise/parsers/asg-parser $
Here is the source code. The problem that causes the bug is the missing ";" on line 15
laplace:~/poly/projet-maitrise/parsers/asg-parser $ cat bug.C
#include <list>
class cObj
{
public:
list < pair <int,int> > lList ;
} ;
void main (void)
{
cObj* lObj = new cObj () ;
pair < int,int > lTmpPair ( 1, 2 )
(lObj->lList).push_back ( lTmpPair ) ;
}
Jf.
p.s. you should change your bug-report mailing address (if not already done in newer versions)
#include <list>
class cObj
{
public:
list < pair <int,int> > lList ;
} ;
void main (void)
{
cObj* lObj = new cObj () ;
pair < int,int > lTmpPair ( 1, 2 )
(lObj->lList).push_back ( lTmpPair ) ;
}