- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Inspired by a current c.l.f thread, I thought I'd torture the compiler...
[fortran]MODULE DontTryThisAtHomeKids
IMPLICIT CHARACTER(*)(s)
CONTAINS
CHARACTER(LEN(s)) FUNCTION reverse(s)
FORALL (i=LEN(s):1:-1) reverse(i:i) = s(i:i)
END FUNCTION reverse
END MODULE DontTryThisAtHomeKids
[/fortran]
As per the thread, I've clearly got no idea whether this is valid source or not, but...
[plain]>ifort /c /check:all /warn:all /standard-semantics "2013-01-09 implicit.f90"
Intel(R) Visual Fortran Compiler XE for applications running on IA-32, Version 13.0.1.119 Build 20121008
Copyright (C) 1985-2012 Intel Corporation. All rights reserved.
2013-01-09 implicit.f90(4): warning #6717: This name has not been given an explicit type.
CHARACTER(LEN(s)) FUNCTION reverse(s)
----------------^
2013-01-09 implicit.f90(5): warning #6717: This name has not been given an explicit type.
FORALL (i=LEN(s):1:-1) reverse(i:i) = s(i:i)
------------^
2013-01-09 implicit.f90(1): catastrophic error: **Internal compiler error: internal abort** Please report this error alo
ng with the circumstances in which it occurred in a Software Problem Report. Note: File and line given may not be expli
cit cause of this error.
compilation aborted for 2013-01-09 implicit.f90 (code 1)[/plain]
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
This problem has been fixed for a release later this year.
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page