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

[Bug fortran/36112] Bounds-checking on character length not working for array-constructors



------- 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


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