public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/22487] New: C++ front-end produces mis-match types in EQ_EXPR (array constructor)
@ 2005-07-14 13:46 pinskia at gcc dot gnu dot org
2005-07-14 13:49 ` [Bug c++/22487] " pinskia at gcc dot gnu dot org
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 13:46 UTC (permalink / raw)
To: gcc-bugs
Testcase only in 64bit mode where sizeof (long) != sizeof(int):
struct c
{
int t;
int y;
c();
};
template <typename T>
T *
allocbuf (unsigned long size)
{
return new T[size];
}
c * a = allocbuf<c>(10);
See PR 22368 for the patch to detect this.
--
Summary: C++ front-end produces mis-match types in EQ_EXPR (array
constructor)
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
GCC target triplet: powerpc64-darwin
OtherBugsDependingO 22368
nThis:
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22487] C++ front-end produces mis-match types in EQ_EXPR (array constructor)
2005-07-14 13:46 [Bug c++/22487] New: C++ front-end produces mis-match types in EQ_EXPR (array constructor) pinskia at gcc dot gnu dot org
@ 2005-07-14 13:49 ` pinskia at gcc dot gnu dot org
2005-07-14 18:32 ` pinskia at gcc dot gnu dot org
2005-08-05 5:13 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 13:49 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-14 13:49 -------
Oh, this has nothing to do with templates at all, reduced further:
struct c
{
int t;
int y;
c();
};
c *
allocbuf (unsigned long size)
{
return new c[size];
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22487] C++ front-end produces mis-match types in EQ_EXPR (array constructor)
2005-07-14 13:46 [Bug c++/22487] New: C++ front-end produces mis-match types in EQ_EXPR (array constructor) pinskia at gcc dot gnu dot org
2005-07-14 13:49 ` [Bug c++/22487] " pinskia at gcc dot gnu dot org
@ 2005-07-14 18:32 ` pinskia at gcc dot gnu dot org
2005-08-05 5:13 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-07-14 18:32 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-07-14 18:31 -------
Another testcase:
struct QRgbMap {
QRgbMap();
};
void convert_32_to_8() {
QRgbMap table[10];
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22487] C++ front-end produces mis-match types in EQ_EXPR (array constructor)
2005-07-14 13:46 [Bug c++/22487] New: C++ front-end produces mis-match types in EQ_EXPR (array constructor) pinskia at gcc dot gnu dot org
2005-07-14 13:49 ` [Bug c++/22487] " pinskia at gcc dot gnu dot org
2005-07-14 18:32 ` pinskia at gcc dot gnu dot org
@ 2005-08-05 5:13 ` pinskia at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-05 5:13 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-05 05:13 -------
Confirmed:
t.cc:14: error: types mismatch in comparsion
long intD.5
intD.2
D.1753 != -1;
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-05 05:13:12
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22487] C++ front-end produces mis-match types in EQ_EXPR (array constructor)
[not found] <bug-22487-6528@http.gcc.gnu.org/bugzilla/>
2005-10-09 20:47 ` pinskia at gcc dot gnu dot org
2005-11-04 9:46 ` rguenth at gcc dot gnu dot org
@ 2005-11-04 9:47 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-11-04 9:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #6 from rguenth at gcc dot gnu dot org 2005-11-04 09:47 -------
Fixed.
--
rguenth at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.1.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22487] C++ front-end produces mis-match types in EQ_EXPR (array constructor)
[not found] <bug-22487-6528@http.gcc.gnu.org/bugzilla/>
2005-10-09 20:47 ` pinskia at gcc dot gnu dot org
@ 2005-11-04 9:46 ` rguenth at gcc dot gnu dot org
2005-11-04 9:47 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2005-11-04 9:46 UTC (permalink / raw)
To: gcc-bugs
------- Comment #5 from rguenth at gcc dot gnu dot org 2005-11-04 09:46 -------
Subject: Bug 22487
Author: rguenth
Date: Fri Nov 4 09:46:43 2005
New Revision: 106487
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=106487
Log:
2005-11-04 Richard Guenther <rguenther@suse.de>
PR c++/22487
* init.c (build_vec_init): Build comparison of matching
types.
Modified:
trunk/gcc/cp/ChangeLog
trunk/gcc/cp/init.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22487
^ permalink raw reply [flat|nested] 7+ messages in thread
* [Bug c++/22487] C++ front-end produces mis-match types in EQ_EXPR (array constructor)
[not found] <bug-22487-6528@http.gcc.gnu.org/bugzilla/>
@ 2005-10-09 20:47 ` pinskia at gcc dot gnu dot org
2005-11-04 9:46 ` rguenth at gcc dot gnu dot org
2005-11-04 9:47 ` rguenth at gcc dot gnu dot org
2 siblings, 0 replies; 7+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-10-09 20:47 UTC (permalink / raw)
To: gcc-bugs
------- Comment #4 from pinskia at gcc dot gnu dot org 2005-10-09 20:47 -------
Even further reduced testcase:
struct _Words {_Words();};
_Words _M_local_word[2];
---
This shows up while bootstrapping on x86_64-pc-linux-gnu.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Keywords| |build
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=22487
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2005-11-04 9:47 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-07-14 13:46 [Bug c++/22487] New: C++ front-end produces mis-match types in EQ_EXPR (array constructor) pinskia at gcc dot gnu dot org
2005-07-14 13:49 ` [Bug c++/22487] " pinskia at gcc dot gnu dot org
2005-07-14 18:32 ` pinskia at gcc dot gnu dot org
2005-08-05 5:13 ` pinskia at gcc dot gnu dot org
[not found] <bug-22487-6528@http.gcc.gnu.org/bugzilla/>
2005-10-09 20:47 ` pinskia at gcc dot gnu dot org
2005-11-04 9:46 ` rguenth at gcc dot gnu dot org
2005-11-04 9:47 ` rguenth 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).