https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70233

Harald Anlauf <anlauf at gmx dot de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |anlauf at gmx dot de

--- Comment #2 from Harald Anlauf <anlauf at gmx dot de> ---
Created attachment 37982
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37982&action=edit
Patch to generate error message

The above patch generates consistent error messages:

pr70233.f90:9:19:

     ch_array = [bh, "def", ch, ch, bh]! no error given
                   1
Error: Different CHARACTER lengths (32/3) in array constructor at (1)
pr70233.f90:10:22:

     ch_array = ["def", bh, ch, ch, ch] ! error given
                      1
Error: Different CHARACTER lengths (3/32) in array constructor at (1)


Is that what you want?  Then feel free to use it.

Harald

Reply via email to