compilation error with g++ version starting from 4.7

Bug #1527725 reported by Wolfgang Betz
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arpack++ (Ubuntu)
New
Undecided
Unassigned

Bug Description

the following files in the include directory are affected:
  ardgsym.h
  ardssym.h

***********************************************************************************************
The following changes are required to patch the current version:
***********************************************************************************************

Index: arpack++/include/ardgsym.h
===================================================================
--- arpack++.orig/include/ardgsym.h 2015-12-18 11:00:06.046030000 -0800
+++ arpack++/include/ardgsym.h 2014-07-09 18:30:28.000000000 -0700
@@ -138,7 +138,7 @@

   ARSymGenEig<ARFLOAT, ARdsSymPencil<ARFLOAT>, ARdsSymPencil<ARFLOAT> >::
     SetShiftInvertMode(sigmap, &Pencil, &ARdsSymPencil<ARFLOAT>::MultInvAsBv);
- ChangeMultBx(&Pencil, &ARdsSymPencil<ARFLOAT>::MultBv);
+ this->ChangeMultBx(&Pencil, &ARdsSymPencil<ARFLOAT>::MultBv);

 } // SetShiftInvertMode.

@@ -150,7 +150,7 @@

   ARSymGenEig<ARFLOAT, ARdsSymPencil<ARFLOAT>, ARdsSymPencil<ARFLOAT> >::
     SetBucklingMode(sigmap, &Pencil, &ARdsSymPencil<ARFLOAT>::MultInvAsBv);
- ChangeMultBx(&Pencil, &ARdsSymPencil<ARFLOAT>::MultAv);
+ this->ChangeMultBx(&Pencil, &ARdsSymPencil<ARFLOAT>::MultAv);

 } // SetBucklingMode.

@@ -163,7 +163,7 @@
   ARSymGenEig<ARFLOAT, ARdsSymPencil<ARFLOAT>, ARdsSymPencil<ARFLOAT> >::
     SetCayleyMode(sigmap, &Pencil, &ARdsSymPencil<ARFLOAT>::MultInvAsBv,
                   &Pencil, &ARdsSymPencil<ARFLOAT>::MultAv);
- ChangeMultBx(&Pencil, &ARdsSymPencil<ARFLOAT>::MultBv);
+ this->ChangeMultBx(&Pencil, &ARdsSymPencil<ARFLOAT>::MultBv);

 } // SetCayleyMode.

@@ -197,7 +197,7 @@
 {

   Pencil.DefineMatrices(A, B);
- this->DefineParameters(A.ncols(), nevp, &Pencil,
+ DefineParameters(A.ncols(), nevp, &Pencil,
                    &ARdsSymPencil<ARFLOAT>::MultInvAsBv, &Pencil,
                    &ARdsSymPencil<ARFLOAT>::MultBv, whichp,
                    ncvp, tolp, maxitp, residp, ishiftp);
Index: arpack++/include/ardssym.h
===================================================================
--- arpack++.orig/include/ardssym.h 2015-12-18 11:00:06.046030000 -0800
+++ arpack++/include/ardssym.h 2014-07-09 18:30:20.000000000 -0700
@@ -134,9 +134,9 @@

 {

- this->DefineParameters(A.ncols(), nevp, &A, &ARdsSymMatrix<ARFLOAT>::MultInvv,
+ DefineParameters(A.ncols(), nevp, &A, &ARdsSymMatrix<ARFLOAT>::MultInvv,
                    whichp, ncvp, tolp, maxitp, residp, ishiftp);
- this->ChangeShift(sigmap);
+ ChangeShift(sigmap);

 } // Long constructor (shift and invert mode).

Tags: patch
Revision history for this message
Wolfgang Betz (wbetz) wrote :
Revision history for this message
Ubuntu Foundations Team Bug Bot (crichton) wrote :

The attachment "patch for ardgsym.h and ardssym.h" seems to be a patch. If it isn't, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team.

[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.]

tags: added: patch
Revision history for this message
Anton Gladky (gladky-anton) wrote :

Hi,

could you please provide a test-file which detects the problem?

Thanks

Anton

Revision history for this message
Wolfgang Betz (wbetz) wrote :

Hi,

try to compile the attached file as follows:

g++ eigen.cpp -larpack -larpack++ -lblas -llapack

.. and you should be able to confirm the problem.

Thanks,
Wolfgang

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments