I'm trying to do an lto build of CP2K, but this fails with:
/data03/vondele/clean/cp2k/makefiles/../src/qs_linres_current.F: In function
‘calculate_jrho_resp’:
/data03/vondele/clean/cp2k/makefiles/../src/qs_linres_current.F:614:0: error:
non-trivial conversion at assignment
struct array3_real(kind=8)
struct array3_real(kind=8)
# .MEM_3681 = VDEF <.MEM_3286>
my_rho = D.13693_938->r;
/data03/vondele/clean/cp2k/makefiles/../src/qs_linres_current.F:614:0: error:
non-trivial conversion at assignment
struct array3_real(kind=8)
struct array3_real(kind=8)
# .MEM_3682 = VDEF <.MEM_3681>
my_current = D.13701_946->r;
/data03/vondele/clean/cp2k/makefiles/../src/qs_linres_current.F:614:0: error:
non-trivial conversion at assignment
struct array3_real(kind=8)
struct array3_real(kind=8)
# .MEM_3750 = VDEF <.MEM_3287>
my_gauge = D.14057_1326->r;
/data03/vondele/clean/cp2k/makefiles/../src/qs_linres_current.F:614:0: internal
compiler error: verify_stmts failed
Please submit a full bug report.
Not sure how to get a testcase for this one....
It appears to be for example this pointer assignment
my_gauge=>rs_gauge(1)%rs(igrid_level)%rs_grid%r
where
REAL(dp), DIMENSION(:, :, :), POINTER :: my_gauge
and r is:
TYPE realspace_grid_type
REAL(KIND=dp), DIMENSION ( :, :, : ), ALLOCATABLE :: r ! the grid
END TYPE realspace_grid_type
--
Summary: ICE non-trivial conversion at assignment
Product: gcc
Version: 4.6.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: lto
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: jv244 at cam dot ac dot uk
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45586