From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16551 invoked by alias); 7 Sep 2010 19:23:30 -0000 Received: (qmail 16533 invoked by uid 48); 7 Sep 2010 19:23:19 -0000 Date: Tue, 07 Sep 2010 19:23:00 -0000 Subject: [Bug lto/45586] New: ICE non-trivial conversion at assignment X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jv244 at cam dot ac dot uk" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2010-09/txt/msg00934.txt.bz2 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