|
|||
|
<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! ] |
|
|
||||
|
||||
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
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 |