From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7280 invoked by alias); 17 Dec 2013 16:19:30 -0000 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 Received: (qmail 7203 invoked by uid 48); 17 Dec 2013 16:19:25 -0000 From: "dominiq at lps dot ens.fr" To: gcc-bugs@gcc.gnu.org Subject: [Bug fortran/51610] [OOP] Class container does not properly handle POINTER and TARGET Date: Tue, 17 Dec 2013 16:19: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-Version: 4.7.0 X-Bugzilla-Keywords: accepts-invalid, rejects-valid X-Bugzilla-Severity: normal X-Bugzilla-Who: dominiq at lps dot ens.fr X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-12/txt/msg01513.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51610 Dominique d'Humieres changed: What |Removed |Added ---------------------------------------------------------------------------- Status|REOPENED |NEW --- Comment #5 from Dominique d'Humieres --- > AFAICS, we still get the bogus error: > > target :: a, b, c > 1 > Error: Duplicate TARGET attribute specified at (1) Reduced test: type t end type t class(t), allocatable :: a(:), b(:), c(:) ! Bogus error: Error: Duplicate TARGET attribute specified target :: a, b, c end There is no error if CLASS is replaced with TYPE or REAL. I still think it would be better to have a new PR opened for it. BTW I think the test in comment 1 is invalid due to ... allocate (a(1), b(1), c(1)) ... class(t), target :: y(3) class(t) :: x(3) ...