From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30309 invoked by alias); 9 Nov 2011 15:02:24 -0000 Received: (qmail 30297 invoked by uid 22791); 9 Nov 2011 15:02:23 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 09 Nov 2011 15:02:08 +0000 From: "janus at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51056] [4.7 Regression][OOP] Bogus "Unused module variable '__vtab_domain_Domain_container'" Date: Wed, 09 Nov 2011 15:12: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: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: janus at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.7.0 X-Bugzilla-Changed-Fields: Status Last reconfirmed Ever Confirmed 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: 2011-11/txt/msg00958.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51056 janus at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2011-11-09 Ever Confirmed|0 |1 --- Comment #1 from janus at gcc dot gnu.org 2011-11-09 15:02:02 UTC --- (In reply to comment #0) > for my other 4.7 tree, I get: > > Warning: Unused module variable '__def_init_domain_Domain_container' which has > been explicitly imported at (1) That's what I get here with: gcc version 4.7.0 20111109 (experimental) [trunk revision 181203] (GCC) Reduced test case: module domain implicit none type :: domain_container contains procedure, nopass :: init end type type(domain_container) :: dom contains subroutine init end subroutine end module program ala use domain, only: dom implicit none call dom%init end program ala