This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/32875] Not Implemented: complex character array constructor
- From: "pault at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 14 Aug 2007 16:36:40 -0000
- Subject: [Bug fortran/32875] Not Implemented: complex character array constructor
- References: <bug-32875-6642@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pault at gcc dot gnu dot org 2007-08-14 16:36 -------
This fixes it but there are one or two regressions that I need to investigate.
Paul
Index: gcc/fortran/trans-array.c
===================================================================
*** gcc/fortran/trans-array.c (revision 127396)
--- gcc/fortran/trans-array.c (working copy)
*************** get_array_ctor_strlen (stmtblock_t *bloc
*** 1421,1426 ****
--- 1421,1433 ----
bool is_const;
is_const = TRUE;
+
+ if (c == NULL)
+ {
+ *len = build_int_cstu (gfc_charlen_type_node, 0);
+ return is_const;
+ }
+
for (; c; c = c->next)
{
switch (c->expr->expr_type)
--
pault at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pault at gcc dot gnu dot org
|dot org |
Status|NEW |ASSIGNED
Last reconfirmed|2007-08-14 09:04:21 |2007-08-14 16:36:40
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32875