public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug fortran/24327]  New: Does not detect duplicate symbol names in contains block
@ 2005-10-12  9:00 fengwang at gcc dot gnu dot org
  2005-10-12 12:52 ` [Bug fortran/24327] " pinskia at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: fengwang at gcc dot gnu dot org @ 2005-10-12  9:00 UTC (permalink / raw)
  To: gcc-bugs

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

$cat test.f90
program test
real :: foo
contains
    function foo ()
    end function foo
end program test

Gfortran passes it.

If add external attribute, we'll get ICE.

$cat test2.f90
program test
real, external :: foo
contains
    function foo ()
    end function foo
end program test
$gfortran test2.f90
test2.f90: In function ‘MAIN__�
test2.f90:7: internal compiler error: in build_function_decl, at fortran/trans
-decl.c:1063
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
$gfortran -v
Using built-in specs.
Target: i686-pc-linux-gnu
Configured with: ../gcc/configure --enable-languages=c,fortran
--prefix=/home/wf
/local : (reconfigured) ../gcc/configure --prefix=/home/wf/local
--enable-langua
ges=c,fortran --no-create --no-recursion : (reconfigured) ../gcc/configure
--pre
fix=/home/wf/local --enable-languages=c,fortran --no-create --no-recursion
Thread model: posix
gcc version 4.1.0 20051010 (experimental)


-- 
           Summary: Does not detect duplicate symbol names in contains block
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code, accepts-invalid
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: fengwang at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24327


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

* [Bug fortran/24327] Does not detect duplicate symbol names in contains block
  2005-10-12  9:00 [Bug fortran/24327] New: Does not detect duplicate symbol names in contains block fengwang at gcc dot gnu dot org
@ 2005-10-12 12:52 ` pinskia at gcc dot gnu dot org
  2006-01-17  0:12 ` pinskia at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-12 12:52 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #1 from pinskia at gcc dot gnu dot org  2005-10-12 12:52 -------
Confirmed.


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
     Ever Confirmed|0                           |1
   Last reconfirmed|0000-00-00 00:00:00         |2005-10-12 12:52:29
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24327


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

* [Bug fortran/24327] Does not detect duplicate symbol names in contains block
  2005-10-12  9:00 [Bug fortran/24327] New: Does not detect duplicate symbol names in contains block fengwang at gcc dot gnu dot org
  2005-10-12 12:52 ` [Bug fortran/24327] " pinskia at gcc dot gnu dot org
@ 2006-01-17  0:12 ` pinskia at gcc dot gnu dot org
  2006-01-22  0:46 ` kargl at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-17  0:12 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #2 from pinskia at gcc dot gnu dot org  2006-01-17 00:12 -------
*** Bug 25813 has been marked as a duplicate of this bug. ***


-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kargl at gcc dot gnu dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24327


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

* [Bug fortran/24327] Does not detect duplicate symbol names in contains block
  2005-10-12  9:00 [Bug fortran/24327] New: Does not detect duplicate symbol names in contains block fengwang at gcc dot gnu dot org
  2005-10-12 12:52 ` [Bug fortran/24327] " pinskia at gcc dot gnu dot org
  2006-01-17  0:12 ` pinskia at gcc dot gnu dot org
@ 2006-01-22  0:46 ` kargl at gcc dot gnu dot org
  2006-01-27 22:01 ` pault at gcc dot gnu dot org
  2006-01-28 21:01 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: kargl at gcc dot gnu dot org @ 2006-01-22  0:46 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #3 from kargl at gcc dot gnu dot org  2006-01-22 00:46 -------
It looks like one or more of pault's patchs has fixed this problem.

kargl[209] gfc4x -c pr24327.f90
 In file pr24327.f90:4

    function foo ()
               1
 In file pr24327.f90:2

real :: foo
          2
Error: Procedure 'foo' at (1) has an explicit interface and must not have
attributes declared at (2)

Adding external attribute I get

kargl[214] gfc4x -c pr24327.f90
 In file pr24327.f90:4

    function foo ()
               1
 In file pr24327.f90:2

real, external :: foo
                    2
Error: Procedure 'foo' at (1) has an explicit interface and must not have attri
butes declared at (2)
 In file pr24327.f90:4

    function foo ()
                  1
Error: EXTERNAL attribute conflicts with FUNCTION attribute in 'foo' at (1)
 In file pr24327.f90:5

    end function foo
      1
Error: Expecting END PROGRAM statement at (1)


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24327


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

* [Bug fortran/24327] Does not detect duplicate symbol names in contains block
  2005-10-12  9:00 [Bug fortran/24327] New: Does not detect duplicate symbol names in contains block fengwang at gcc dot gnu dot org
                   ` (2 preceding siblings ...)
  2006-01-22  0:46 ` kargl at gcc dot gnu dot org
@ 2006-01-27 22:01 ` pault at gcc dot gnu dot org
  2006-01-28 21:01 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pault at gcc dot gnu dot org @ 2006-01-27 22:01 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #4 from pault at gcc dot gnu dot org  2006-01-27 22:01 -------
Fixed in trunk and, in about 15 minutes, on 4.1

Thanks, Steve, for noticing that I had accidentally fixed this.

Paul


-- 

pault at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24327


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

* [Bug fortran/24327] Does not detect duplicate symbol names in contains block
  2005-10-12  9:00 [Bug fortran/24327] New: Does not detect duplicate symbol names in contains block fengwang at gcc dot gnu dot org
                   ` (3 preceding siblings ...)
  2006-01-27 22:01 ` pault at gcc dot gnu dot org
@ 2006-01-28 21:01 ` pinskia at gcc dot gnu dot org
  4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2006-01-28 21:01 UTC (permalink / raw)
  To: gcc-bugs



-- 

pinskia at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |4.1.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24327


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

end of thread, other threads:[~2006-01-28 21:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-10-12  9:00 [Bug fortran/24327] New: Does not detect duplicate symbol names in contains block fengwang at gcc dot gnu dot org
2005-10-12 12:52 ` [Bug fortran/24327] " pinskia at gcc dot gnu dot org
2006-01-17  0:12 ` pinskia at gcc dot gnu dot org
2006-01-22  0:46 ` kargl at gcc dot gnu dot org
2006-01-27 22:01 ` pault at gcc dot gnu dot org
2006-01-28 21:01 ` pinskia at gcc dot gnu dot 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).