public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/19400] New: vector keyword in typedef inside struct ignored
@ 2005-01-12 14:55 leblanc at skycomputers dot com
2005-01-12 15:27 ` [Bug c++/19400] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: leblanc at skycomputers dot com @ 2005-01-12 14:55 UTC (permalink / raw)
To: gcc-bugs
This program
1 #include <stdio.h>
2 #include <altivec.h>
3
4 struct s {
5 typedef vector float vf;
6 vf v1;
7 vector float v2;
8 } S;
9
10 int main () {
11 printf ("sizeof(s::vf) is %d\n",sizeof(s::vf));
12 printf ("sizeof(S.v1) is %d\n",sizeof(S.v1));
13 printf ("sizeof(S.v2) is %d\n",sizeof(S.v2));
14 printf ("sizeof(S) is %d\n",sizeof(S));
15 return 0;
16 }
prints
sizeof(s::vf) is 4
sizeof(S.v1) is 4
sizeof(S.v2) is 16
sizeof(S) is 32
I would expect the 4-s to be 16-s.
--
Summary: vector keyword in typedef inside struct ignored
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: leblanc at skycomputers dot com
CC: gcc-bugs at gcc dot gnu dot org,paavola at skycomputers
dot com
GCC build triplet: ppc-yellowdog-linux
GCC host triplet: ppc-yellowdog-linux
GCC target triplet: ppc-yellowdog-linux
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19400
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug c++/19400] vector keyword in typedef inside struct ignored
2005-01-12 14:55 [Bug c++/19400] New: vector keyword in typedef inside struct ignored leblanc at skycomputers dot com
@ 2005-01-12 15:27 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-01-12 15:27 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-01-12 15:27 -------
This is a dup of bug 9573 which is fixed for 4.0.0.
*** This bug has been marked as a duplicate of 9573 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19400
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-01-12 15:27 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-01-12 14:55 [Bug c++/19400] New: vector keyword in typedef inside struct ignored leblanc at skycomputers dot com
2005-01-12 15:27 ` [Bug c++/19400] " pinskia 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).