Bug 20827 - Compiler gets stuck in loop on valid code
Summary: Compiler gets stuck in loop on valid code
Status: RESOLVED DUPLICATE of bug 20821
Alias: None
Product: gcc
Classification: Unclassified
Component: fortran (show other bugs)
Version: 4.1.0
: P2 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-08 11:49 UTC by Paul Thomas
Modified: 2005-07-23 22:49 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Thomas 2005-04-08 11:50:02 UTC
This extract from the code of Guglielmo Pasa causes GNU Fortran 95 (GCC 4.1.0 
20050401 (experimental)) to go into an infinite loop.  Reducing the number of 
optional arguments or changing LEN(WHAT) to LEN=10, for example, stop the 
infinite loop.

  SUBROUTINE CQUERY(WHAT,OUI,NON)
    CHARACTER(LEN=*),INTENT(INOUT)       :: WHAT
    CHARACTER(LEN=*),INTENT(IN),OPTIONAL :: OUI,NON
    INTEGER               :: INFO
    CHARACTER(LEN(WHAT))   :: REP,Y0,N0
    
    Y0=OUI
    N0=NON


  END SUBROUTINE CQUERY
Comment 1 Andrew Pinski 2005-04-08 11:55:09 UTC

*** This bug has been marked as a duplicate of 20821 ***