[EMAIL PROTECTED]:~/src/tests> cat pr16404.f90
  REAL, TARGET :: B(2,2)
  common x/b/
  B = 1.
END

[EMAIL PROTECTED]:~/src/tests> ../gcc/build/gcc/f951 pr16404.f90
 MAIN__
pr16404.f90:3: internal compiler error: Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://gcc.gnu.org/bugs.html> for instructions.
[EMAIL PROTECTED]:~/src/tests> 

The segfault happens when the common block is being translated, but the code
should have been rejected much earlier.

-- 
           Summary: segfault with syntactically wrong common declaration
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Keywords: ice-on-invalid-code
          Severity: normal
          Priority: P2
         Component: fortran
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tobi at gcc dot gnu dot org
                CC: gcc-bugs at gcc dot gnu dot org


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

Reply via email to