This is the mail archive of the gcc-patches@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]

[will commit] Fix PR middle-end/24362, tree-complex vs RESULT_DECL


The problem here is that there is a missing case for the RESULT_DECL
in tree-complex.c.  This obvious patch fixes it by treating RESULT_DECL
just like all the other decls.

Will commit to the mainline and the 4.0 branch once SVN comes
online.

Thanks,
Andrew Pinski

ChangeLog:

	* tree-complex.c (extract_component): Treat RESULT_DECL
	like the rest of the decls.

testsuite/ChangeLog:

	* g++.dg/opt/complex4.C: New test.

Attachment: fixPR24362.diff.txt
Description: ASCII C program text

Attachment: fixPR24362.40.diff.txt
Description: ASCII C program text


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