Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
29278 Discussions

Reporting Internal Compiler Error and Strange Bug

Niranama
Beginner
204 Views

I would like to report an internal compiler error and a strange bug.

The file named 'M_IntelBug.f90' shows a simple reproducer of the problem that causes an internal compiler error (ICE).  The other three files shows a simple reproducer of the problem that causes a strange (but certainly) bug.

As illustrated in the 'M_IntelBug.f90' file, the ICE occurred when a mistake was made by calling a type-bound procedure (that has no other argument) without parentheses and this procedure call was used as an input to construct a derived type variable.  If the same mistake is made but the procedure call is used in an assignment expression, the compiler is able to recognize the mistake and properly report the error.
As for the strange bug, it occurs in the 'SMOD_W_EXTERNAL.f90' file (a submodule) where the compiler reports "error #7257: The characteristics of the procedure argument differ from those specified in the separate interface body."  Nonetheless, if you have a subroutine following the routine that causes an error (e.g..by uncommenting the DUMMY subroutine), the error then disappears.  I also includes the 'SMOD_WO_EXTERNAL' file (also a submodule) to show that this bug relates to an external procedure as argument.

Note: These two problems occur for both IFORT (last version - 2021.12.0) and IFX (latest version - 2025.2.0) so I think they are in the front end of the compiler(s).

Niranama

0 Kudos
2 Replies
Ron_Green
Moderator
104 Views

The bug ID for the ICE is CMPLRLLVM-70733

 

thanks for sending this to us.  I am writing a separate report for the SMOD issue and will post that bug ID here.

0 Kudos
Ron_Green
Moderator
97 Views

the bug ID for the Submodule issue is CMPLRLLVM-70739


0 Kudos
Reply