public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/67740] New: Wrong association status of allocatable character pointer in derived types
@ 2015-09-28  6:59 baradi09 at gmail dot com
  2015-10-10 10:05 ` [Bug fortran/67740] " dominiq at lps dot ens.fr
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: baradi09 at gmail dot com @ 2015-09-28  6:59 UTC (permalink / raw)
  To: gcc-bugs

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67740

            Bug ID: 67740
           Summary: Wrong association status of allocatable character
                    pointer in derived types
           Product: gcc
           Version: 5.2.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: fortran
          Assignee: unassigned at gcc dot gnu.org
          Reporter: baradi09 at gmail dot com
  Target Milestone: ---

Created attachment 36405
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36405&action=edit
Self containing example demonstrating the issue.

Dear all,

I've found the following problem with gfortran 5.2.0: Let's take a derived type
(Base) with a pointer component (string) of the type deferred length character,
one instance of this derived type and two pointers (p1 and p2) pointing to this
one instance. While 'associated(p1, p2)' correctly detects the equivalence of
the two pointers, 'associated(p1%string, p2%string)' wrongly indicates an
inequivalence of the pointer components.

Best,

Bálint
>From gcc-bugs-return-498166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org Mon Sep 28 07:11:16 2015
Return-Path: <gcc-bugs-return-498166-listarch-gcc-bugs=gcc.gnu.org@gcc.gnu.org>
Delivered-To: listarch-gcc-bugs@gcc.gnu.org
Received: (qmail 115229 invoked by alias); 28 Sep 2015 07:11:16 -0000
Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id: <gcc-bugs.gcc.gnu.org>
List-Archive: <http://gcc.gnu.org/ml/gcc-bugs/>
List-Post: <mailto:gcc-bugs@gcc.gnu.org>
List-Help: <mailto:gcc-bugs-help@gcc.gnu.org>
Sender: gcc-bugs-owner@gcc.gnu.org
Delivered-To: mailing list gcc-bugs@gcc.gnu.org
Received: (qmail 115202 invoked by uid 48); 28 Sep 2015 07:11:12 -0000
From: "trippels at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/67739] name clash between builtin functions and local variables when optimization is on
Date: Mon, 28 Sep 2015 07:11:00 -0000
X-Bugzilla-Reason: CC
X-Bugzilla-Type: changed
X-Bugzilla-Watch-Reason: None
X-Bugzilla-Product: gcc
X-Bugzilla-Component: c++
X-Bugzilla-Version: 4.9.3
X-Bugzilla-Keywords:
X-Bugzilla-Severity: major
X-Bugzilla-Who: trippels at gcc dot gnu.org
X-Bugzilla-Status: UNCONFIRMED
X-Bugzilla-Resolution:
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: cc
Message-ID: <bug-67739-4-zRgLhiVoFW@http.gcc.gnu.org/bugzilla/>
In-Reply-To: <bug-67739-4@http.gcc.gnu.org/bugzilla/>
References: <bug-67739-4@http.gcc.gnu.org/bugzilla/>
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: 2015-09/txt/msg02144.txt.bz2
Content-length: 516

https://gcc.gnu.org/bugzilla/show_bug.cgi?idg739

Markus Trippelsdorf <trippels at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |trippels at gcc dot gnu.org

--- Comment #1 from Markus Trippelsdorf <trippels at gcc dot gnu.org> ---
Well just don't name the array sincosf. Or use -fno-builtin-sin.
I can only reproduce the issue with 4.9.3 and -Ofast.


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2024-05-14 20:06 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-09-28  6:59 [Bug fortran/67740] New: Wrong association status of allocatable character pointer in derived types baradi09 at gmail dot com
2015-10-10 10:05 ` [Bug fortran/67740] " dominiq at lps dot ens.fr
2021-05-03 12:51 ` bardeau at iram dot fr
2023-09-26 19:57 ` anlauf at gcc dot gnu.org
2023-09-26 20:28 ` anlauf at gcc dot gnu.org
2023-09-27 20:07 ` anlauf at gcc dot gnu.org
2023-10-08  8:44 ` pault at gcc dot gnu.org
2023-10-08 20:43 ` anlauf at gcc dot gnu.org
2023-10-09 20:29 ` anlauf at gcc dot gnu.org
2023-10-12  6:27 ` cvs-commit at gcc dot gnu.org
2023-10-26  9:36 ` cvs-commit at gcc dot gnu.org
2023-10-26  9:39 ` pault at gcc dot gnu.org
2023-10-26 12:08 ` baradi09 at gmail dot com
2024-05-14 20:06 ` anlauf at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).