This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/36112] Bounds-checking on character length not working for array-constructors
- From: "d at domob dot eu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 May 2008 13:31:49 -0000
- Subject: [Bug fortran/36112] Bounds-checking on character length not working for array-constructors
- References: <bug-36112-15965@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from d at domob dot eu 2008-05-03 13:31 -------
Created an attachment (id=15568)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=15568&action=view)
Four test cases for character-array constructors
This "patch" includes four test-cases that should all triger a bounds-checking
runtime error for character-array-constructors (including the one given in the
bug description); currently only one of them does this (also as written above).
I'm not sure about the correct dejagnu-format and the expected error messages,
but of course I'll adapt this during working on the patch if needed. Are the
tests ok or do I misinterpret what the expected behaviour for them should be?
Do you think we need more tests? Is there some thing despite character-arrays
that could/should trigger a bounds-checking error, like values with different
KIND parameters? Do we need succeeding test cases, maybe in combination with
typespecs on array constructors (PR27997) when this is fixed?
Thanks for the comments!
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=36112