This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

bug report in gcc-2.8.1 and egcs-1.1.1




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 ) ;
}


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]