This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/47455] [4.6 Regression][OOP] internal compiler error: in fold_convert_loc, at fold-const.c:2028
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Jan 2011 10:36:53 +0000
- Subject: [Bug fortran/47455] [4.6 Regression][OOP] internal compiler error: in fold_convert_loc, at fold-const.c:2028
- Auto-submitted: auto-generated
- References: <bug-47455-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47455
--- Comment #4 from Tobias Burnus <burnus at gcc dot gnu.org> 2011-01-26 10:36:41 UTC ---
Created attachment 23130
--> http://gcc.gnu.org/bugzilla/attachment.cgi?id=23130
Draft patch, working but failing due to another related bug
(In reply to comment #3)
[First patch]
Works for the test case, but does not regtest. The following makes more sense:
Replace "proc_pointer" by "pointer || allocatable"
* * *
However, the test case - in the attachment - fails due to a different and in
principle unrelated reason:
find_x2 (struct __class_class_t_T & restrict this)
{
struct tx * res;
res.i.data = 0B;
res = 0B;
The "res.i.data = 0" is obviously wrong: The pointer "res" should be already be
set to NULL - thus the component should in that case never be set.