This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/29926] interface overloading assignment does not handle input types correctly
- From: "jeffrey dot armstrong at analexcleveland dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Nov 2006 19:17:41 -0000
- Subject: [Bug fortran/29926] interface overloading assignment does not handle input types correctly
- References: <bug-29926-11177@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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