public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* Re: c++/5050: template instantiation depth exceeds/maybe recursio n problem
@ 2002-09-27 10:06 Tim Bagot
  0 siblings, 0 replies; only message in thread
From: Tim Bagot @ 2002-09-27 10:06 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

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
 *********************************************************************
 


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-27 17:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-27 10:06 c++/5050: template instantiation depth exceeds/maybe recursio n problem Tim Bagot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).