From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28579 invoked by alias); 17 Mar 2013 22:38:19 -0000 Received: (qmail 25752 invoked by uid 48); 17 Mar 2013 22:37:57 -0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/56500] [OOP] "IMPLICIT CLASS(...)" wrongly rejected Date: Sun, 17 Mar 2013 22:38:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: fortran X-Bugzilla-Keywords: rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: janus at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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: 2013-03/txt/msg01284.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56500 --- Comment #8 from janus at gcc dot gnu.org 2013-03-17 22:37:56 UTC --- (In reply to comment #7) > > Oops, you're right. *Lots* of failures. Seems I looked at the wrong logfile :( > > AFAICT they come from the patch in comment #2 and are mostly (all?) of the kind > "... has no IMPLICIT type". Yes. I hope this variant should work better (regtesting now): Index: gcc/fortran/decl.c =================================================================== --- gcc/fortran/decl.c (revision 196748) +++ gcc/fortran/decl.c (working copy) @@ -6293,6 +6293,9 @@ attr_decl1 (void) } } + if (sym->ts.type == BT_UNKNOWN) + gfc_set_default_type (sym, 0, NULL); + /* Update symbol table. DIMENSION attribute is set in gfc_set_array_spec(). For CLASS variables, this must be applied to the first component, or '_data' field. */