The attached testcase is compiled without complaints by g++ 4.4.2 and 4.5.0, but is rejected by current trunk. I'm quite sure that it was still accepted by the trunk a few days ago. Is this change intended, i.e. is the test case ill-formed and g++ has stricter checks now?
~/tmp>g++ -v -Wfatal-errors temptest.cc Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/afs/mpa/data/martin/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /scratch/martin/gcc/configure --disable-bootstrap --enable-gold --enable-plugins --prefix=/afs/mpa/data/martin/ugcc --with-ppl=/afs/mpa/data/martin/numlibs64 --with-cloog=/afs/mpa/data/martin/numlibs64 --with-libelf=/afs/mpa/data/martin/numlibs64 --enable-languages=c++,fortran --enable-target=all --enable-checking=release Thread model: posix gcc version 4.6.0 20100701 (experimental) [trunk revision 161665] (GCC) COLLECT_GCC_OPTIONS='-v' '-Wfatal-errors' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /afs/mpa/data/martin/ugcc/libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/cc1plus -quiet -v -D_GNU_SOURCE temptest.cc -quiet -dumpbase temptest.cc -mtune=generic -march=x86-64 -auxbase temptest -Wfatal-errors -version -o /tmp/ccS9t2f9.s GNU C++ (GCC) version 4.6.0 20100701 (experimental) [trunk revision 161665] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.0 20100628 (experimental) [trunk revision 161485], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 warning: GMP header version 4.3.2 differs from library version 4.3.1. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/afs/mpa/data/martin/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /afs/mpa/data/martin/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0 /afs/mpa/data/martin/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/x86_64-unknown-linux-gnu /afs/mpa/data/martin/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/../../../../include/c++/4.6.0/backward /usr/local/include /afs/mpa/data/martin/ugcc/include /afs/mpa/data/martin/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include /afs/mpa/data/martin/ugcc/lib/gcc/x86_64-unknown-linux-gnu/4.6.0/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.6.0 20100701 (experimental) [trunk revision 161665] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.6.0 20100628 (experimental) [trunk revision 161485], GMP version 4.3.2, MPFR version 2.4.2, MPC version 0.8.1 warning: GMP header version 4.3.2 differs from library version 4.3.1. GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: 5f71a12a0438e83fd7b8caa75cf5702d temptest.cc: In member function 'void Healpix_Map<T>::Import_nograde(const Healpix_Map<T>&)': temptest.cc:19:25: error: invalid use of 'Healpix_Map<T>::ring2nest(int) const' to form a pointer-to-member-function compilation terminated due to -Wfatal-errors. ~/tmp>g++ -v -c -Wfatal-errors temptest.cc Using built-in specs. COLLECT_GCC=g++ COLLECT_LTO_WRAPPER=/scratch/martin/ugcc45/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/lto-wrapper Target: x86_64-unknown-linux-gnu Configured with: /scratch/martin/gcc45/configure --disable-bootstrap --enable-gold --enable-plugins --prefix=/scratch/martin/ugcc45 --with-mpfr=/afs/mpa/data/martin/numlibs64 --with-gmp=/afs/mpa/data/martin/numlibs64 --with-mpc=/afs/mpa/data/martin/numlibs64 --with-ppl=/afs/mpa/data/martin/numlibs64 --with-cloog=/afs/mpa/data/martin/numlibs64 --with-libelf=/afs/mpa/data/martin/numlibs64 --enable-languages=c++,fortran --enable-target=all --enable-checking=release Thread model: posix gcc version 4.5.1 20100615 (prerelease) [gcc-4_5-branch revision 160776] (GCC) COLLECT_GCC_OPTIONS='-v' '-c' '-Wfatal-errors' '-shared-libgcc' '-mtune=generic' '-march=x86-64' /scratch/martin/ugcc45/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/cc1plus -quiet -v -D_GNU_SOURCE temptest.cc -quiet -dumpbase temptest.cc -mtune=generic -march=x86-64 -auxbase temptest -Wfatal-errors -version -o /tmp/ccbESmf0.s GNU C++ (GCC) version 4.5.1 20100615 (prerelease) [gcc-4_5-branch revision 160776] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.2, GMP version 4.3.1, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 ignoring nonexistent directory "/scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../x86_64-unknown-linux-gnu/include" #include "..." search starts here: #include <...> search starts here: /scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1 /scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/x86_64-unknown-linux-gnu /scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../include/c++/4.5.1/backward /usr/local/include /scratch/martin/ugcc45/include /scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include /scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/include-fixed /usr/include End of search list. GNU C++ (GCC) version 4.5.1 20100615 (prerelease) [gcc-4_5-branch revision 160776] (x86_64-unknown-linux-gnu) compiled by GNU C version 4.4.2, GMP version 4.3.1, MPFR version 2.4.2, MPC version 0.8.1 GGC heuristics: --param ggc-min-expand=100 --param ggc-min-heapsize=131072 Compiler executable checksum: f67756f729cefbeb791a25b18e9799ee COLLECT_GCC_OPTIONS='-v' '-c' '-Wfatal-errors' '-shared-libgcc' '-mtune=generic' '-march=x86-64' as -V -Qy --64 -o temptest.o /tmp/ccbESmf0.s GNU assembler version 2.19.1 (x86_64-unknown-linux-gnu) using BFD version (GNU Binutils) 2.19.1 COMPILER_PATH=/scratch/martin/ugcc45/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/:/scratch/martin/ugcc45/libexec/gcc/x86_64-unknown-linux-gnu/4.5.1/:/scratch/martin/ugcc45/libexec/gcc/x86_64-unknown-linux-gnu/:/scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/:/scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/ LIBRARY_PATH=/scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/:/scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../../lib64/:/lib/../lib64/:/usr/lib/../lib64/:/scratch/martin/ugcc45/lib/gcc/x86_64-unknown-linux-gnu/4.5.1/../../../:/lib/:/usr/lib/ COLLECT_GCC_OPTIONS='-v' '-c' '-Wfatal-errors' '-shared-libgcc' '-mtune=generic' '-march=x86-64' -- Summary: [4.6 regression?] Behaviour change with pointers to members Product: gcc Version: 4.6.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: martin at mpa-garching dot mpg dot de GCC build triplet: x86_64-unknown-linux-gnu GCC host triplet: x86_64-unknown-linux-gnu GCC target triplet: x86_64-unknown-linux-gnu http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44778