public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR
@ 2005-07-07 22:30 pinskia at gcc dot gnu dot org
2005-07-07 22:31 ` [Bug c++/22358] " pinskia at gcc dot gnu dot org
` (5 more replies)
0 siblings, 6 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-07 22:30 UTC (permalink / raw)
To: gcc-bugs
Take the following C++ code:
struct a
{
virtual ~a();
};
struct b : virtual a { };
b a11;
With the (to be) attached patch I get the following mis-match types:
t.cc: In constructor 'b::b()':
t.cc:10: error: statement types mismatch
iftmp.8D.1929 = 0;
intD.2
long unsigned intD.7
This was reduced from complex_io.cc in libstdc++.
--
Summary: C++ front-end (or fold) produces mis-match types in
MODIFY_EXPR
Product: gcc
Version: 4.1.0
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: pinskia at gcc dot gnu dot org
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22358] C++ front-end (or fold) produces mis-match types in MODIFY_EXPR
2005-07-07 22:30 [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR pinskia at gcc dot gnu dot org
@ 2005-07-07 22:31 ` pinskia at gcc dot gnu dot org
2005-07-07 23:58 ` [Bug c++/22358] C++ front-end " pinskia at gcc dot gnu dot org
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-07 22:31 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-07 22:31 -------
Created an attachment (id=9226)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9226&action=view)
patch which is used to find this
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22358] C++ front-end produces mis-match types in MODIFY_EXPR
2005-07-07 22:30 [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR pinskia at gcc dot gnu dot org
2005-07-07 22:31 ` [Bug c++/22358] " pinskia at gcc dot gnu dot org
@ 2005-07-07 23:58 ` pinskia at gcc dot gnu dot org
2005-07-08 0:02 ` pinskia at gcc dot gnu dot org
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-07 23:58 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-07 23:58 -------
The mis-matched type is created here:
#0 build3_stat (code=COND_EXPR, tt=0x41e254fc, arg0=0x41ea0d38, arg1=0x41ea8c60,
arg2=0x41e1d180) at /Users/pinskia/src/local/gcc/gcc/tree.c:2679
#1 0x000cab6c in build_base_path (code=PLUS_EXPR, expr=0x41ece000, binfo=0x41e05680,
nonnull=1) at /Users/pinskia/src/local/gcc/gcc/cp/class.c:368
--
What |Removed |Added
----------------------------------------------------------------------------
Summary|C++ front-end (or fold) |C++ front-end produces mis-
|produces mis-match types in |match types in MODIFY_EXPR
|MODIFY_EXPR |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22358] C++ front-end produces mis-match types in MODIFY_EXPR
2005-07-07 22:30 [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR pinskia at gcc dot gnu dot org
2005-07-07 22:31 ` [Bug c++/22358] " pinskia at gcc dot gnu dot org
2005-07-07 23:58 ` [Bug c++/22358] C++ front-end " pinskia at gcc dot gnu dot org
@ 2005-07-08 0:02 ` pinskia at gcc dot gnu dot org
2005-07-12 17:25 ` pinskia at gcc dot gnu dot org
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-08 0:02 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-08 00:01 -------
I have a fix.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at gcc dot gnu |pinskia at gcc dot gnu dot
|dot org |org
Status|UNCONFIRMED |ASSIGNED
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-07-08 00:01:51
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22358] C++ front-end produces mis-match types in MODIFY_EXPR
2005-07-07 22:30 [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR pinskia at gcc dot gnu dot org
` (2 preceding siblings ...)
2005-07-08 0:02 ` pinskia at gcc dot gnu dot org
@ 2005-07-12 17:25 ` pinskia at gcc dot gnu dot org
2005-07-21 18:29 ` pinskia at gcc dot gnu dot org
2005-07-21 18:46 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-12 17:25 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-12 17:22 -------
Patch here: <http://gcc.gnu.org/ml/gcc-patches/2005-07/msg00864.html>.
--
What |Removed |Added
----------------------------------------------------------------------------
URL| |http://gcc.gnu.org/ml/gcc-
| |patches/2005-
| |07/msg00864.html
Keywords| |patch
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22358] C++ front-end produces mis-match types in MODIFY_EXPR
2005-07-07 22:30 [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR pinskia at gcc dot gnu dot org
` (3 preceding siblings ...)
2005-07-12 17:25 ` pinskia at gcc dot gnu dot org
@ 2005-07-21 18:29 ` pinskia at gcc dot gnu dot org
2005-07-21 18:46 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-21 18:29 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-21 18:29 -------
Fixed.
--
What |Removed |Added
----------------------------------------------------------------------------
Status|ASSIGNED |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22358
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22358] C++ front-end produces mis-match types in MODIFY_EXPR
2005-07-07 22:30 [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR pinskia at gcc dot gnu dot org
` (4 preceding siblings ...)
2005-07-21 18:29 ` pinskia at gcc dot gnu dot org
@ 2005-07-21 18:46 ` cvs-commit at gcc dot gnu dot org
5 siblings, 0 replies; 7+ messages in thread
From: cvs-commit at gcc dot gnu dot org @ 2005-07-21 18:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From cvs-commit at gcc dot gnu dot org 2005-07-21 18:29 -------
Subject: Bug 22358
CVSROOT: /cvs/gcc
Module name: gcc
Changes by: pinskia@gcc.gnu.org 2005-07-21 18:29:06
Modified files:
gcc/cp : ChangeLog class.c
gcc/testsuite : ChangeLog
Added files:
gcc/testsuite/g++.dg/other: pr22358.C
Log message:
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/22358
* g++.dg/other/pr22358.C: New test.
2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
PR C++/22358
* class.c (build_base_path): Convert BINFO_OFFSET to the correct type.
Patches:
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/ChangeLog.diff?cvsroot=gcc&r1=1.4829&r2=1.4830
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/cp/class.c.diff?cvsroot=gcc&r1=1.727&r2=1.728
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&r1=1.5797&r2=1.5798
http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/g++.dg/other/pr22358.C.diff?cvsroot=gcc&r1=NONE&r2=1.1
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22358
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-07-21 18:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-07 22:30 [Bug c++/22358] New: C++ front-end (or fold) produces mis-match types in MODIFY_EXPR pinskia at gcc dot gnu dot org
2005-07-07 22:31 ` [Bug c++/22358] " pinskia at gcc dot gnu dot org
2005-07-07 23:58 ` [Bug c++/22358] C++ front-end " pinskia at gcc dot gnu dot org
2005-07-08 0:02 ` pinskia at gcc dot gnu dot org
2005-07-12 17:25 ` pinskia at gcc dot gnu dot org
2005-07-21 18:29 ` pinskia at gcc dot gnu dot org
2005-07-21 18:46 ` cvs-commit 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).