Skip to content

gfortran.fortran-torture/execute/equiv_init_1.f90 fails execution test when compiled with llvm-gfortran #2817

@llvmbot

Description

@llvmbot
Bugzilla Link 2445
Resolution DUPLICATE
Resolved on Apr 06, 2010 12:02
Version 2.3
OS MacOS X
Attachments testcase
Reporter LLVM Bugzilla Contributor

Extended Description

The gfortran.fortran-torture/execute/equiv_init_1.f90 testcase fails the execution tests when compiled with llvm-gfortran. The specific sections which are miscompiled are...

--- equiv_init_1.f90.org 2008-06-12 21:59:43.000000000 -0400
+++ equiv_init_1.f90 2008-06-12 22:05:25.000000000 -0400
@@ -31,9 +31,9 @@
equivalence (a(1), x)
equivalence (a(3), z)
if (x.ne.1) call abort

  • if (z.ne.3) call abort
    +! if (z.ne.3) call abort
    if (a(1).ne.1) call abort
  • if (a(3).ne.3) call abort
    +! if (a(3).ne.3) call abort
    end

subroutine test2
@@ -66,7 +66,7 @@
data a/1,2/
data c/3/
if (b(1).ne.2) call abort

  • if (b(2).ne.3) call abort
    +! if (b(2).ne.3) call abort
    end

!!$subroutine test5

as demonstrated by the fact that commenting these tests eliminate the execution failures. The original testcase is attached.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzilladuplicateResolved as duplicatellvm-toolsAll llvm tools that do not have corresponding tag

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions