- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Consider the following minimal example:
module lib
interface operator(//)
procedure f
end interface
contains
function f(c,i)
character(len=*),intent(in)::c
integer,intent(in)::i
character(len=:),allocatable::f
character(len=12)::t
write(t,*)i
f=c//t
end
end
program prog
use lib
character(len=42)::c
c=''!&
//''//42
end
Compilation of this code with ifx 2024.0.2 (on Ubuntu 18.04) fails with the message `error #5633: **Internal compiler error: segmentation violation signal raised**`. The reason for the error is a syntax error in line 19: a missing line continuation character `&`. Removing the comment character `!` in this line will fix the issue. However, I don't think that the compiler should fail with an ICE. I suppose, this happens due to the overloading of the concatenation operator `//` and using it in an expression with a line continuation.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I will open a bug report. Thank you for sending this to us!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The bug ID on this is CMPLRLLVM-56083

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page