public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/21455] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
@ 2005-05-08 21:27 ` pluto at agmk dot net
2005-05-08 23:48 ` pluto at agmk dot net
` (9 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pluto at agmk dot net @ 2005-05-08 21:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pluto at agmk dot net 2005-05-08 21:27 -------
Created an attachment (id=8840)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=8840&action=view)
testcase
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion
@ 2005-05-08 21:27 pluto at agmk dot net
2005-05-08 21:27 ` [Bug c++/21455] " pluto at agmk dot net
` (10 more replies)
0 siblings, 11 replies; 12+ messages in thread
From: pluto at agmk dot net @ 2005-05-08 21:27 UTC (permalink / raw)
To: gcc-bugs
testcase.ii:20253: error: type 'XMLFile' is not a base type for type 'XMLFile'
testcase.ii:20253: error: in pointer to member conversion
I think it's a reject of valid code.
# gcc-4.0.1-20050507.
--
Summary: type 'X' is not a base type for type 'X' in pointer to
member conversion
Product: gcc
Version: 4.0.1
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pluto at agmk dot net
CC: gcc-bugs at gcc dot gnu dot org
GCC build triplet: i686-pld-linux
GCC host triplet: i686-pld-linux
GCC target triplet: i686-pld-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
2005-05-08 21:27 ` [Bug c++/21455] " pluto at agmk dot net
@ 2005-05-08 23:48 ` pluto at agmk dot net
2005-05-08 23:48 ` pluto at agmk dot net
` (8 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pluto at agmk dot net @ 2005-05-08 23:48 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pluto at agmk dot net 2005-05-08 23:47 -------
reduced testcase:
class A;
typedef bool (A::*FuncPtr)();
class B {
public:
FuncPtr foo() const { return fp1; }
FuncPtr bar() const { return fp2; }
private:
FuncPtr fp1, fp2;
};
In member function 'bool (A::* B::bar() const)()':
error: type 'A' is not a base type for type 'A'
error: in pointer to member conversion
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
2005-05-08 21:27 ` [Bug c++/21455] " pluto at agmk dot net
2005-05-08 23:48 ` pluto at agmk dot net
@ 2005-05-08 23:48 ` pluto at agmk dot net
2005-05-08 23:49 ` pluto at agmk dot net
` (7 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pluto at agmk dot net @ 2005-05-08 23:48 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
Attachment #8840 is|0 |1
obsolete| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (2 preceding siblings ...)
2005-05-08 23:48 ` pluto at agmk dot net
@ 2005-05-08 23:49 ` pluto at agmk dot net
2005-05-08 23:56 ` [Bug c++/21455] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
` (6 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pluto at agmk dot net @ 2005-05-08 23:49 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |mmazur at kernel dot pl
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] [4.0/4.1 Regression] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (3 preceding siblings ...)
2005-05-08 23:49 ` pluto at agmk dot net
@ 2005-05-08 23:56 ` pinskia at gcc dot gnu dot org
2005-05-09 20:40 ` pinskia at gcc dot gnu dot org
` (5 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-08 23:56 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-08 23:56 -------
Confirmed, reduced testcase:
class XMLFile;
typedef bool (XMLFile::*ParserFunctionPtr)();
struct ParserElement
{
ParserFunctionPtr getPreFunc() const { return preFunc; }
ParserFunctionPtr getPostFunc() const { return postFunc; }
ParserFunctionPtr preFunc;
ParserFunctionPtr postFunc;
};
This has been failing since "3.5.0 20040909".
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Keywords| |rejects-valid
Last reconfirmed|0000-00-00 00:00:00 |2005-05-08 23:56:24
date| |
Summary|type 'X' is not a base type |[4.0/4.1 Regression] type
|for type 'X' in pointer to |'X' is not a base type for
|member conversion |type 'X' in pointer to
| |member conversion
Target Milestone|--- |4.0.1
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] [4.0/4.1 Regression] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (4 preceding siblings ...)
2005-05-08 23:56 ` [Bug c++/21455] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
@ 2005-05-09 20:40 ` pinskia at gcc dot gnu dot org
2005-05-11 21:31 ` pluto at agmk dot net
` (4 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-05-09 20:40 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-05-09 20:40 -------
: Search converges between 2004-07-12-trunk (#484) and 2004-07-13-trunk (#485).
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] [4.0/4.1 Regression] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (5 preceding siblings ...)
2005-05-09 20:40 ` pinskia at gcc dot gnu dot org
@ 2005-05-11 21:31 ` pluto at agmk dot net
2005-05-27 14:48 ` nathan at gcc dot gnu dot org
` (3 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: pluto at agmk dot net @ 2005-05-11 21:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pluto at agmk dot net 2005-05-11 21:31 -------
this bug is absolutely a showstopper for many projects.
will someone care, please?
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] [4.0/4.1 Regression] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (6 preceding siblings ...)
2005-05-11 21:31 ` pluto at agmk dot net
@ 2005-05-27 14:48 ` nathan at gcc dot gnu dot org
2005-05-27 15:53 ` cvs-commit at gcc dot gnu dot org
` (2 subsequent siblings)
10 siblings, 0 replies; 12+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-05-27 14:48 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |nathan at gcc dot gnu dot
|dot org |org
Status|NEW |ASSIGNED
Last reconfirmed|2005-05-08 23:56:24 |2005-05-27 14:43:30
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] [4.0/4.1 Regression] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (7 preceding siblings ...)
2005-05-27 14:48 ` nathan at gcc dot gnu dot org
@ 2005-05-27 15:53 ` cvs-commit at gcc dot gnu dot org
2005-05-27 15:54 ` cvs-commit at gcc dot gnu dot org
2005-05-27 16:03 ` nathan at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-27 15:53 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-27 15:50 -------
Subject: Bug 21455
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: nathan@gcc.gnu.org 2005-05-27 15:50:29
Modified files:
gcc/testsuite : ChangeLog
gcc/cp : ChangeLog typeck.c
Added files:
gcc/testsuite/g++.dg/inherit: ptrmem3.C
Log message:
cp:
PR c++/21455
* typeck.c (get_delta_difference): Cope with incomplete but equal
classes. Reorder if.
testsuite:
PR c++/21455
* g++.dg/inherit/ptrmem3.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5545&r2=1.5546
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/ptrmem3.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4759&r2=1.4760
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&r1=1.629&r2=1.630
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] [4.0/4.1 Regression] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (8 preceding siblings ...)
2005-05-27 15:53 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-27 15:54 ` cvs-commit at gcc dot gnu dot org
2005-05-27 16:03 ` nathan at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-05-27 15:54 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-05-27 15:53 -------
Subject: Bug 21455
CVSROOT: /cvs/gcc
Module name: gcc
Branch: gcc-4_0-branch
Changes by: nathan@gcc.gnu.org 2005-05-27 15:53:10
Modified files:
gcc/cp : ChangeLog typeck.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/inherit: ptrmem3.C
Log message:
cp:
PR c++/21455
* typeck.c (get_delta_difference): Cope with incomplete but equal
classes.
testsuite:
PR c++/21455
* g++.dg/inherit/ptrmem3.C: New.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.4648.2.46&r2=1.4648.2.47
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/typeck.c.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.616.2.6&r2=1.616.2.7
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=1.5084.2.201&r2=1.5084.2.202
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/inherit/ptrmem3.C.diff?cvsroot=gcc&only_with_tag=gcc-4_0-branch&r1=NONE&r2=1.1.2.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
* [Bug c++/21455] [4.0/4.1 Regression] type 'X' is not a base type for type 'X' in pointer to member conversion
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
` (9 preceding siblings ...)
2005-05-27 15:54 ` cvs-commit at gcc dot gnu dot org
@ 2005-05-27 16:03 ` nathan at gcc dot gnu dot org
10 siblings, 0 replies; 12+ messages in thread
From: nathan at gcc dot gnu dot org @ 2005-05-27 16:03 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From nathan at gcc dot gnu dot org 2005-05-27 15:54 -------
fixed mainline and 4.0
2005-05-27 Nathan Sidwell <nathan@codesourcery.com>
PR c++/21455
* typeck.c (get_delta_difference): Cope with incomplete but equal
classes. Reorder if.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21455
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2005-05-27 15:54 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-08 21:27 [Bug c++/21455] New: type 'X' is not a base type for type 'X' in pointer to member conversion pluto at agmk dot net
2005-05-08 21:27 ` [Bug c++/21455] " pluto at agmk dot net
2005-05-08 23:48 ` pluto at agmk dot net
2005-05-08 23:48 ` pluto at agmk dot net
2005-05-08 23:49 ` pluto at agmk dot net
2005-05-08 23:56 ` [Bug c++/21455] [4.0/4.1 Regression] " pinskia at gcc dot gnu dot org
2005-05-09 20:40 ` pinskia at gcc dot gnu dot org
2005-05-11 21:31 ` pluto at agmk dot net
2005-05-27 14:48 ` nathan at gcc dot gnu dot org
2005-05-27 15:53 ` cvs-commit at gcc dot gnu dot org
2005-05-27 15:54 ` cvs-commit at gcc dot gnu dot org
2005-05-27 16:03 ` nathan 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).