)]}' { "commit": "1e819bd95ebeefc1dc469daa1855ce005cb77822", "tree": "e92e1e5ba1f1abf39844b4c0e87c50145c49f75e", "parents": [ "4aef14b09557ce072f1269bd8a05fa2b1df0eda2" ], "author": { "name": "Harald Anlauf", "email": "anlauf@gmx.de", "time": "Fri Oct 15 21:23:17 2021 +0200" }, "committer": { "name": "Harald Anlauf", "email": "anlauf@gmx.de", "time": "Fri Oct 15 21:23:17 2021 +0200" }, "message": "Fortran: validate shape of arrays in constructors against declarations\n\ngcc/fortran/ChangeLog:\n\n\tPR fortran/102685\n\t* decl.c (match_clist_expr): Set rank/shape of clist initializer\n\tto match LHS.\n\t* resolve.c (resolve_structure_cons): In a structure constructor,\n\tcompare shapes of array components against declared shape.\n\ngcc/testsuite/ChangeLog:\n\n\tPR fortran/102685\n\t* gfortran.dg/derived_constructor_char_1.f90: Fix invalid code.\n\t* gfortran.dg/pr70931.f90: Likewise.\n\t* gfortran.dg/transfer_simplify_2.f90: Likewise.\n\t* gfortran.dg/pr102685.f90: New test.\n\nCo-authored-by: Tobias Burnus \u003ctobias@codesourcery.com\u003e\n", "tree_diff": [ { "type": "modify", "old_id": "d6a22d13451fe784ace3739af9332f811f1b16fc", "old_mode": 33188, "old_path": "gcc/fortran/decl.c", "new_id": "86adb81da32339605644497b070f1a029a7541b9", "new_mode": 33188, "new_path": "gcc/fortran/decl.c" }, { "type": "modify", "old_id": "0d0af39d23f0d6ffc10ca3eb0e590ce2c2286811", "old_mode": 33188, "old_path": "gcc/fortran/resolve.c", "new_id": "5ccd9072c240d89b08db7423184f5b43a4092370", "new_mode": 33188, "new_path": "gcc/fortran/resolve.c" }, { "type": "modify", "old_id": "892a9c9f4c1d5dcafb0179854ecd084b9b414ac1", "old_mode": 33188, "old_path": "gcc/testsuite/gfortran.dg/derived_constructor_char_1.f90", "new_id": "91fc4c902d82352376db7cb3675f6d1e307815fb", "new_mode": 33188, "new_path": "gcc/testsuite/gfortran.dg/derived_constructor_char_1.f90" }, { "type": "add", "old_id": "0000000000000000000000000000000000000000", "old_mode": 0, "old_path": "/dev/null", "new_id": "d325c27b32ac0881414e803799a64740eb2f8be5", "new_mode": 33188, "new_path": "gcc/testsuite/gfortran.dg/pr102685.f90" }, { "type": "modify", "old_id": "08ecd687752649feb06bfafa2ddc1e648dd94dc5", "old_mode": 33188, "old_path": "gcc/testsuite/gfortran.dg/pr70931.f90", "new_id": "4444b5eec3b7f08b196f385d62253525fd1bee11", "new_mode": 33188, "new_path": "gcc/testsuite/gfortran.dg/pr70931.f90" }, { "type": "modify", "old_id": "e0f3f94c4ca94cf5f7ec142199ab88fcf4783931", "old_mode": 33188, "old_path": "gcc/testsuite/gfortran.dg/transfer_simplify_2.f90", "new_id": "b428fa64b5660fa957566d7c790b7090257bbb08", "new_mode": 33188, "new_path": "gcc/testsuite/gfortran.dg/transfer_simplify_2.f90" } ] }