From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14377 invoked by alias); 15 Feb 2008 18:15:59 -0000 Received: (qmail 14227 invoked by uid 48); 15 Feb 2008 18:15:16 -0000 Date: Fri, 15 Feb 2008 18:15:00 -0000 Message-ID: <20080215181516.14226.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug fortran/35203] OPTIONAL, VALUE actual argument cannot be an INTEGER 0 In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "toon at moene dot indiv dot nluug dot nl" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2008-02/txt/msg01732.txt.bz2 ------- Comment #7 from toon at moene dot indiv dot nluug dot nl 2008-02-15 18:15 ------- > As written, I checked all my compilers and all get a wrong result > - gfortran, g95, NAG f95: NOT PRESENT > - ifort: PRESENT, WITH VALUE: 0 (even if not present) > (ifort 10 and ifort 10.1 print a warning that present should not be used with > value; ifort 9 give the same run-time result, but does not have the warning) > - sunf95: Compile-time error: OPTIONAL and VALUE may not be used both I just asked Bill Long of Cray (who heads the subgroup that covers this) to try it on Cray's compiler - it ICE'd with a message that clearly showed that it didn't expect to be handed an OPTIONAL, VALUE argument (without flagging it as a not-legal construct, though). I'm closing the PR as "WONTFIX". > (While we are at it: Please make sure that OPTION + VALUE + BIND(C) will not be > allowed in the upcoming interoperability TR; if it is included, there should be > a note giving implementation suggestions. F2003 is unaffected by this as > OPTIONAL is not allowed with BIND(C).) You bet. There was a heated discussion on this yesterday, which didn't result in any progress. Bill will send out an e-mail with the issues. -- toon at moene dot indiv dot nluug dot nl changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35203