Bug 45525 - [4.6 Regression] gfortran.dg/dummy_procedure_1.f90 failed
Summary: [4.6 Regression] gfortran.dg/dummy_procedure_1.f90 failed
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.6.0
: P3 normal
Target Milestone: ---
Assignee: Daniel Kraft
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-09-03 18:05 UTC by H.J. Lu
Modified: 2010-09-03 20:20 UTC (History)
2 users (show)

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
Proposed patch (378 bytes, patch)
2010-09-03 18:24 UTC, Daniel Kraft
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description H.J. Lu 2010-09-03 18:05:19 UTC
On Linux/x86-64, I got

/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gfortran.dg/dummy_procedure_1.f90:39.10:^M
^M
  call s1(i) ! { dg-error "Expected a procedure for argument" }^M
          1^M
Error: Expected a procedure for argument 'f' at (1)^M
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gfortran.dg/dummy_procedure_1.f90:43.10:^M
^M
  call s1(z) ! { dg-error "Expected a procedure for argument" }^M
          1^M
Error: Expected a procedure for argument 'f' at (1)^M
/export/gnu/import/svn/gcc-test/src-trunk/gcc/testsuite/gfortran.dg/dummy_procedure_1.f90:44.10:^M
^M
  call s2(x) ! { dg-error "Invalid procedure argument" }^M
          1^M
Error: Invalid procedure argument at (1)^M

PASS: gfortran.dg/dummy_procedure_1.f90  -O   (test for errors, line 39)
FAIL: gfortran.dg/dummy_procedure_1.f90  -O   (test for errors, line 40)
Comment 1 H.J. Lu 2010-09-03 18:09:07 UTC
It failed with revision 163827 and worked with 163811.
It may be caused by revision163813 :

http://gcc.gnu.org/ml/gcc-cvs/2010-09/msg00104.html
Comment 2 Daniel Kraft 2010-09-03 18:24:20 UTC
Created attachment 21687 [details]
Proposed patch

Patch to fix this.  I wonder why it did not show up for me before, but I'm taking this and will regtest/submit this nearly obvious patch now.
Comment 3 Mikael Morin 2010-09-03 19:45:57 UTC
(In reply to comment #2)
> Created an attachment (id=21687) [edit]
> Proposed patch
> 
> Patch to fix this.  I wonder why it did not show up for me before, but I'm
> taking this and will regtest/submit this nearly obvious patch now.
> 

It is indeed obvious ; I pre-approve it and you don't even need to regtest, as your patch isn't changing any code. 
Comment 4 Daniel Kraft 2010-09-03 19:51:08 UTC
Subject: Bug 45525

Author: domob
Date: Fri Sep  3 19:50:44 2010
New Revision: 163840

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=163840
Log:
2010-09-03  Daniel Kraft  <d@domob.eu>

	PR fortran/45525
	* gfortran.dg/dummy_procedure_1.f90: Add -std=f2003 and adapt error.

Modified:
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/testsuite/gfortran.dg/dummy_procedure_1.f90

Comment 5 Daniel Kraft 2010-09-03 20:20:16 UTC
I guess we can close this now.