c++/7181: foo<n>::bar = foo<n-1>::bar + foo<n-2>::bar evaluates to zero at compile time

Paolo Carlini pcarlini@unitus.it
Tue Jul 2 13:36:00 GMT 2002


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

From: Paolo Carlini <pcarlini@unitus.it>
To: gcc-gnats@gcc.gnu.org,  gcc-prs@gcc.gnu.org,  dobrynin@bigfoot.com, 
 gcc-bugs@gcc.gnu.org, Mark Mitchell <mark@codesourcery.com>, Nathan Sidwell
 <nathan@codesourcery.com>
Cc:  
Subject: Re: c++/7181: foo<n>::bar = foo<n-1>::bar + foo<n-2>::bar evaluates
 to zero at compile time
Date: Tue, 02 Jul 2002 22:28:13 +0200

 Hi,
 
 from a very practical point of view, would be difficult to restore the 
 behaviour of 2.95.x? Note that Intel and Comeau adopts that "particular" 
 initialization order and the current "equivalent" one ;-) breaks a whole 
 body of literature on template metaprogramming...
 
 Ciao, Paolo.
 
 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7181 
 
 



More information about the Gcc-prs mailing list