Go Back   Rhinocerus > Newsgroup > Newsgroup comp.language.c++ > Newsgroup comp.language.c++.moderated

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 10-25-2005, 08:03 PM
Ben Hutchings
Guest
 
Posts: n/a
Default Re: are cyclic references between static template class variables legal?

<yossi.kreinin@gmail.com> wrote:
> Hi!
>
> Is it legal for definitions of static variables of template classes
> to refer to (for example, take addresses of) static variables of other
> template classes, if cyclic references are formed? I believe it is
> legal
> for non-template classes, and so apparently should be legal for
> templates.


I can't see why it wouldn't be.

> A sample code illustrating the problem (compiles and appears to
> run correctly with Green Hills 4.0.7 - EDG frontend - and fails
> with an ICE under gcc 3.3.1):

<snip>

That's an outdated version. GCC 3.3.5 and 3.4.4 compile and run
it correctly, so far as I can see.

Ben.

--
Ben Hutchings
Having problems with C++ templates? Your questions may be answered by
<http://womble.decadentplace.org.uk/c++/template-faq.html>.

[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

Reply With Quote
Alt Today
Advertising
 
and become member of Rhinocerus
Standard Sponsored Links

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: One of my reporting macros has 90 parameters - is that a record? David Newsgroup comp.soft-sys.sas 5 02-04-2006 03:07 AM
Re: Creating dummy variables automatically Dale McLerran Newsgroup comp.soft-sys.sas 2 01-09-2006 11:05 AM
Re: SAS/Graph space problem? Andre Wielki Newsgroup comp.soft-sys.sas 0 07-08-2005 08:27 AM
Re: basic question: need the class statement for binary variables? Jonas Bilenas Newsgroup comp.soft-sys.sas 0 12-01-2004 04:24 PM
basic question: need the class statement for binary variables? Neerav Newsgroup comp.soft-sys.sas 2 11-18-2004 04:42 PM



All times are GMT. The time now is 11:03 PM.


Copyright ©2009

LinkBacks Enabled by vBSEO 3.3.0 RC2 © 2009, Crawlability, Inc.