Sorry, the wrong version of the file seemed to have gone out :( Hello, I have been struggling with a very misterious bug all morning and cannot figure it out. The attached program is the smallest example I could reproduce it on. The problem line seems to be line 79, a deallocation of a pointer of a type which has down underneath an allocatable component array (line 13). If I change the allocatable array component to a pointer, the problem dissapears, and same if I just comment out line 79. So the problem is something with the rules for deep copy and/or automatic deallocation of allocatable components. But I am not sure what exactly the problem is. The NAG compiler fails to compile unless line 79 is commented out, Lahey compiles but produces the wrong result at the last line unless line 79 is commented out: [1577 Common_lf95 @ atom]$ Bug.Types.x Before: The values of the partitioned array are: 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 After 1: The values of the partitioned array are: 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 1.00000000 After 2: The values of the partitioned array are: -NaN 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 0.00000000E+00 I am not sure if this is just my coding or bugs in implementations of TR15881? Thanks, Aleksandar -- __________________________________ Aleksandar Donev Complex Materials Theory Group (http://cherrypit.princeton.edu/) Princeton Materials Institute & Program in Applied and Computational Mathematics @ Princeton University Address: 419 Bowen Hall, 70 Prospect Avenue Princeton University Princeton, NJ 08540-5211 E-mail: [log in to unmask] WWW: http://atom.princeton.edu/donev Phone: (609) 258-2775 Fax: (609) 258-6878 __________________________________