This is the mail archive of the gcc-prs@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]
Other format: [Raw text]

Re: c++/5050: template instantiation depth exceeds/maybe recursion problem


The following reply was made to PR c++/5050; it has been noted by GNATS.

From: Tim Bagot <tbagot@bluearc.com>
To: "'gcc-gnats@gcc.gnu.org'" <gcc-gnats@gcc.gnu.org>, 
	"'gcc-prs@gcc.gnu.org'" <gcc-prs@gcc.gnu.org>, "'georg.wild@gmx.de'"
	 <georg.wild@gmx.de>, "'gcc-bugs@gcc.gnu.org'" <gcc-bugs@gcc.gnu.org>, 
	"'nobody@gcc.gnu.org'" <nobody@gcc.gnu.org>
Cc:  
Subject: Re: c++/5050: template instantiation depth exceeds/maybe recursio
	n problem
Date: Fri, 27 Sep 2002 17:56:47 +0100

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&pr=5050&databa
 se=gcc
 
 > State-Changed-From-To: analyzed-feedback
 > State-Changed-By: jason
 > State-Changed-When: Tue Apr  9 18:23:37 2002
 > State-Changed-Why:
 > Seems fixed now.
 
 With gcc-3.2 I see the same problem with the following code, compiled using
 gcc -c -ftemplate-depth-17 -O2 . (Without optimisation turned on it is
 fine.)
 
 struct ostream
 {
     template<class T> ostream & operator <<( const T & )
     {
         return *this;
     }
 };
 
 void foo(ostream& os)
 {
     os<<1<<2<<3<<4<<5<<6<<7<<8<<9<<10<<11<<12<<13<<14<<15<<16<<17<<18;
 }
 
 
 *********************************************************************
 This e-mail and any attachment is confidential. It may only be read, copied and used by the intended recipient(s). If you are not the intended recipient(s), you may not copy, use, distribute, forward, store or disclose this e-mail or any attachment. If you are not the intended recipient(s) or have otherwise received this e-mail in error, you should destroy it and any attachment and notify the sender by reply e-mail or send a message to sysadmin@bluearc.com
 *********************************************************************
 


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