Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local02.nntp.dca.giganews.com!nntp.supernews.com!news.supernews.com.POSTED!not-for-mail NNTP-Posting-Date: Wed, 16 Apr 2008 10:32:16 -0500 Newsgroups: comp.lang.fortran Subject: Re: Is this standard-conforming code? From: nos...@see.signature (Richard Maine) Date: Wed, 16 Apr 2008 08:32:16 -0700 Message-ID: <1ifhe06.1tbdnqwxbkkN%nospam@see.signature> References: <4805faf5$0$9528$4c368faf@roadrunner.com> User-Agent: MacSOUP/2.8.2 (Mac OS X version 10.5.2 (x86)) Lines: 24 X-Trace: sv3-fyFsUG0+VSWL9Aod759GkOMsLv/YV6CgpAFHpu3J6ZToyZ2/yInZZVZRsLxWfWA8rJwN9FQ1mvhwsKk!ANZ7WXFO4u57M3XgbaTw3KsKiIs6SUldSaX8sMieLFae9HdYk5i2dqOFM1Yw8OQoMlR9P3lkTCXp!8A== X-Complaints-To: www.supernews.com/docs/abuse.html X-DMCA-Complaints-To: www.supernews.com/docs/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.39 Craig Dedo wrote: > "John" wrote in message > news:fu4ru9$dbi$1@aioe.org... > > Is the below code standard conforming?.. > No, it is not standard conforming. Using the name of a derived type > before it is defined explicitly violates the rules in section 5.1.1.1 of > Fortran 2003. While I agree that the code is illegal, this isn't the reason. See Michael's post for the relevant citation. The code in question does not use the name of a derived type before it is defined. The name of the derived type is "acessible there by use or host association", which your citation specifically says is ok. The code uses the name of a *VARIABLE* before that variable is defined, which is a diferent thing. The variable happens to be of derived type, but that's not directly relevant to the problem. -- Richard Maine | Good judgement comes from experience; email: last name at domain . net | experience comes from bad judgement. domain: summertriangle | -- Mark Twain