This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/55839] Inefficiency with array constructor
- From: "mikael at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 01 Jan 2013 19:03:22 +0000
- Subject: [Bug fortran/55839] Inefficiency with array constructor
- Auto-submitted: auto-generated
- References: <bug-55839-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55839
Mikael Morin <mikael at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mikael at gcc dot gnu.org
--- Comment #1 from Mikael Morin <mikael at gcc dot gnu.org> 2013-01-01 19:03:22 UTC ---
This is a known deficiency of the handling of array constructors in gfortran.
There are other bugs about them.
For cases like:
a(:) = [b(:)]
the code generated does twice as much work as needed (initialization of the
array constructor's content and copy from it).