gambitproject/gambit — pull request #26 by dkasak (2012-04-05 22:46:37+00:00)
Title: Fix gcc 4.7 compilation issues

Compilation of Gambit master currently fails on gcc 4.7 with errors such as:

src/libgambit/matrix.imp:266:5: error: ‘SetRow’ was not declared in this scope, and no declarations were found by argument-dependent lookup at the point of instantiation [-fpermissive]
src/libgambit/matrix.imp:266:5: note: declarations in dependent base ‘Gambit::RectArray’ are not found by unqualified lookup
src/libgambit/matrix.imp:266:5: note: use ‘this->SetRow’ instead

This is due to name lookup changes introduced in 4.7 (http://gcc.gnu.org/gcc-4.7/porting_to.html). Specifically, gcc no longer examines the base clase scope for unqualified name lookups in templates (http://gcc.gnu.org/bugzilla/show_bug.cgi?id=24163).

The commit in this pull request fixes the issue and reenables compilation with gcc 4.7.