public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members
@ 2010-07-02 7:33 martin at mpa-garching dot mpg dot de
2010-07-02 7:34 ` [Bug c++/44778] " martin at mpa-garching dot mpg dot de
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2010-07-02 7:33 UTC (permalink / raw)
To: gcc-bugs
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/44778] [4.6 regression?] Behaviour change with pointers to members
2010-07-02 7:33 [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members martin at mpa-garching dot mpg dot de
@ 2010-07-02 7:34 ` martin at mpa-garching dot mpg dot de
2010-07-02 9:12 ` [Bug c++/44778] [4.6 regression]? " rguenth at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: martin at mpa-garching dot mpg dot de @ 2010-07-02 7:34 UTC (permalink / raw)
To: gcc-bugs
------- Comment #1 from martin at mpa-garching dot mpg dot de 2010-07-02 07:33 -------
Created an attachment (id=21060)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=21060&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44778
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/44778] [4.6 regression]? Behaviour change with pointers to members
2010-07-02 7:33 [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members martin at mpa-garching dot mpg dot de
2010-07-02 7:34 ` [Bug c++/44778] " martin at mpa-garching dot mpg dot de
@ 2010-07-02 9:12 ` rguenth at gcc dot gnu dot org
2010-07-03 2:52 ` hjl dot tools at gmail dot com
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-07-02 9:12 UTC (permalink / raw)
To: gcc-bugs
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|[4.6 regression?] Behaviour |[4.6 regression]? Behaviour
|change with pointers to |change with pointers to
|members |members
Target Milestone|--- |4.6.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44778
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/44778] [4.6 regression]? Behaviour change with pointers to members
2010-07-02 7:33 [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members martin at mpa-garching dot mpg dot de
2010-07-02 7:34 ` [Bug c++/44778] " martin at mpa-garching dot mpg dot de
2010-07-02 9:12 ` [Bug c++/44778] [4.6 regression]? " rguenth at gcc dot gnu dot org
@ 2010-07-03 2:52 ` hjl dot tools at gmail dot com
2010-07-03 3:10 ` jason at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: hjl dot tools at gmail dot com @ 2010-07-03 2:52 UTC (permalink / raw)
To: gcc-bugs
------- Comment #2 from hjl dot tools at gmail dot com 2010-07-03 02:51 -------
It is caused by revision 161560:
http://gcc.gnu.org/ml/gcc-cvs/2010-06/msg01478.html
--
hjl dot tools at gmail dot com changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jason at redhat dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44778
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/44778] [4.6 regression]? Behaviour change with pointers to members
2010-07-02 7:33 [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members martin at mpa-garching dot mpg dot de
` (2 preceding siblings ...)
2010-07-03 2:52 ` hjl dot tools at gmail dot com
@ 2010-07-03 3:10 ` jason at gcc dot gnu dot org
2010-07-06 19:23 ` jason at gcc dot gnu dot org
2010-07-09 20:47 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-07-03 3:10 UTC (permalink / raw)
To: gcc-bugs
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |jason at gcc dot gnu dot org
|dot org |
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed|0 |1
Last reconfirmed|0000-00-00 00:00:00 |2010-07-03 03:10:06
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44778
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/44778] [4.6 regression]? Behaviour change with pointers to members
2010-07-02 7:33 [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members martin at mpa-garching dot mpg dot de
` (3 preceding siblings ...)
2010-07-03 3:10 ` jason at gcc dot gnu dot org
@ 2010-07-06 19:23 ` jason at gcc dot gnu dot org
2010-07-09 20:47 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-07-06 19:23 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from jason at gcc dot gnu dot org 2010-07-06 19:23 -------
Subject: Bug 44778
Author: jason
Date: Tue Jul 6 19:22:49 2010
New Revision: 161879
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161879
Log:
PR c++/44778
* init.c (build_offset_ref): If scope isn't dependent,
don't exit early. Look at TYPE_MAIN_VARIANT.
* pt.c (tsubst_copy) [OFFSET_REF]: Do substitution.
Added:
trunk/gcc/testsuite/g++.dg/template/ptrmem22.C
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
trunk/gcc/cp/pt.c
trunk/gcc/testsuite/ChangeLog
trunk/gcc/testsuite/g++.dg/template/ptrmem17.C
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44778
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/44778] [4.6 regression]? Behaviour change with pointers to members
2010-07-02 7:33 [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members martin at mpa-garching dot mpg dot de
` (4 preceding siblings ...)
2010-07-06 19:23 ` jason at gcc dot gnu dot org
@ 2010-07-09 20:47 ` jason at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: jason at gcc dot gnu dot org @ 2010-07-09 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from jason at gcc dot gnu dot org 2010-07-09 20:47 -------
Fixed.
--
jason at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44778
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-07-09 20:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-07-02 7:33 [Bug c++/44778] New: [4.6 regression?] Behaviour change with pointers to members martin at mpa-garching dot mpg dot de
2010-07-02 7:34 ` [Bug c++/44778] " martin at mpa-garching dot mpg dot de
2010-07-02 9:12 ` [Bug c++/44778] [4.6 regression]? " rguenth at gcc dot gnu dot org
2010-07-03 2:52 ` hjl dot tools at gmail dot com
2010-07-03 3:10 ` jason at gcc dot gnu dot org
2010-07-06 19:23 ` jason at gcc dot gnu dot org
2010-07-09 20:47 ` jason at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).