This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug fortran/29926] interface overloading assignment does not handle input types correctly



------- Comment #5 from jeffrey dot armstrong at analexcleveland dot com  2006-11-21 19:17 -------
Ah, now I see my error.  The program should work fine using your code:

    b = int(65535,kind=4)

Wrapping with the uword(...) is both unnecessary and wrong.  Apparently 4.3.0
is actually performing range checking whereas 4.2.0 was not, hence 4.2.0 would
not issue an error by default.  Furthermore, due to the nature of the
assignment operation being attempted, the uncaught range violation in 4.2.0
will actually produce the correct bit pattern in the uword%value member.  A
syntactical mistake, I apologize.  Apparently Absoft is also soft on range
violations, similar to 4.2.0.  Thank you for the assistance!


-- 

jeffrey dot armstrong at analexcleveland dot com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |INVALID


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]