This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

g++ vector of ptr-to-member bug


The following program will not compile with g++ 2.95.2. It previously
compiled with egcs-1.1.2.  I believe that the program is legal and
should compile.

Environment: solaris 2.6
g++ -v
gcc version 2.95.2 19991024 (release)


-----------------------------------------
#include <vector>

struct Foo {
   typedef void (Foo::*foo_ptr)() ;
   void foo() ;
} ;

vector<Foo::foo_ptr> v ;
----------------------------------------




-- 
Mike Brennan
brennan@amc.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]