public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/23833] New: warning: "ignoring packed attribute on unpacked non-POD field" on templates
@ 2005-09-12 13:43 Dmitry dot Chepel at acronis dot com
2005-09-12 13:45 ` [Bug c++/23833] " Dmitry dot Chepel at acronis dot com
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: Dmitry dot Chepel at acronis dot com @ 2005-09-12 13:43 UTC (permalink / raw)
To: gcc-bugs
gcc ver 3.4.3
system type: any
g++ -v -save-temps -Wall test.cpp
i see bug 17519 but this can be other bug.
--
Summary: warning: "ignoring packed attribute on unpacked non-POD
field" on templates
Product: gcc
Version: 3.4.3
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: c++
AssignedTo: unassigned at gcc dot gnu dot org
ReportedBy: Dmitry dot Chepel at acronis dot com
CC: gcc-bugs at gcc dot gnu dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23833
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/23833] warning: "ignoring packed attribute on unpacked non-POD field" on templates
2005-09-12 13:43 [Bug c++/23833] New: warning: "ignoring packed attribute on unpacked non-POD field" on templates Dmitry dot Chepel at acronis dot com
@ 2005-09-12 13:45 ` Dmitry dot Chepel at acronis dot com
2005-09-12 13:46 ` Dmitry dot Chepel at acronis dot com
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Dmitry dot Chepel at acronis dot com @ 2005-09-12 13:45 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Dmitry dot Chepel at acronis dot com 2005-09-12 13:45 -------
Created an attachment (id=9709)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9709&action=view)
output from compler
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23833
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/23833] warning: "ignoring packed attribute on unpacked non-POD field" on templates
2005-09-12 13:43 [Bug c++/23833] New: warning: "ignoring packed attribute on unpacked non-POD field" on templates Dmitry dot Chepel at acronis dot com
2005-09-12 13:45 ` [Bug c++/23833] " Dmitry dot Chepel at acronis dot com
@ 2005-09-12 13:46 ` Dmitry dot Chepel at acronis dot com
2005-09-12 13:47 ` Dmitry dot Chepel at acronis dot com
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Dmitry dot Chepel at acronis dot com @ 2005-09-12 13:46 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Dmitry dot Chepel at acronis dot com 2005-09-12 13:46 -------
Created an attachment (id=9710)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=9710&action=view)
the preprocessed file
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23833
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/23833] warning: "ignoring packed attribute on unpacked non-POD field" on templates
2005-09-12 13:43 [Bug c++/23833] New: warning: "ignoring packed attribute on unpacked non-POD field" on templates Dmitry dot Chepel at acronis dot com
2005-09-12 13:45 ` [Bug c++/23833] " Dmitry dot Chepel at acronis dot com
2005-09-12 13:46 ` Dmitry dot Chepel at acronis dot com
@ 2005-09-12 13:47 ` Dmitry dot Chepel at acronis dot com
2005-09-13 20:17 ` pinskia at gcc dot gnu dot org
2005-09-18 2:06 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: Dmitry dot Chepel at acronis dot com @ 2005-09-12 13:47 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From Dmitry dot Chepel at acronis dot com 2005-09-12 13:46 -------
#include <iostream>
template<typename D, typename W>
struct GuidTemplate
{
char kk;
D TimeLow;
W TimeMid;
W TimeHiAndVer;
union
{
char ClkSeqAndNodeArray[8];
long long ClkSeqAndNodeQword;
struct
{
char ClkSeqHiAndVariant;
char ClkSeqLow;
char Node[6];
};
};
GuidTemplate() {}
} __attribute__ ((packed));
typedef GuidTemplate<long, short> LeGuid;
struct PartitionEntry
{
LeGuid PartitionTypeGuid; // Unique ID that defines the purpose and type of
this Partition.
// A value of zero defines that this partition
// record is not being used.
LeGuid UniquePartitionGuid;// GUID that is unique for every partition
record. Every
// partition ever created will have a unique GUID.
This
// GUID must be assigned when the GUID Partition
Entry
// is created. The GUID Partition Entry is created
when
// ever the NumberOfPartitionEntries in the
// GUID Partition Table Header is increased to
include a
// larger range of addresses.
//le_qword StartingLba; // Starting LBA of the partition defined by this
record
///le_qword EndingLba; // Ending LBA of the partition defined by this
record
//le_qword Attributes; // All bit EFI Reserved
//le_word PartitionName[GPT_PARTITION_NAME_LENGTH]; // Human readable
Unicode string identification
} __attribute__ ((packed));
int main()
{
PartitionEntry entry;
std::cout << "sizeof structute LeGuid = " << sizeof(LeGuid) << "\n";
std::cout << "sizeof structute PartitionEntry = " << sizeof(PartitionEntry) <<
"\n";
return 0;
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23833
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/23833] warning: "ignoring packed attribute on unpacked non-POD field" on templates
2005-09-12 13:43 [Bug c++/23833] New: warning: "ignoring packed attribute on unpacked non-POD field" on templates Dmitry dot Chepel at acronis dot com
` (2 preceding siblings ...)
2005-09-12 13:47 ` Dmitry dot Chepel at acronis dot com
@ 2005-09-13 20:17 ` pinskia at gcc dot gnu dot org
2005-09-18 2:06 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-13 20:17 UTC (permalink / raw)
To: gcc-bugs
--
What |Removed |Added
----------------------------------------------------------------------------
CC| |nathan at gcc dot gnu dot
| |org
Keywords| |diagnostic
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23833
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug c++/23833] warning: "ignoring packed attribute on unpacked non-POD field" on templates
2005-09-12 13:43 [Bug c++/23833] New: warning: "ignoring packed attribute on unpacked non-POD field" on templates Dmitry dot Chepel at acronis dot com
` (3 preceding siblings ...)
2005-09-13 20:17 ` pinskia at gcc dot gnu dot org
@ 2005-09-18 2:06 ` pinskia at gcc dot gnu dot org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-09-18 2:06 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-18 02:06 -------
*** This bug has been marked as a duplicate of 13983 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23833
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2005-09-18 2:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-12 13:43 [Bug c++/23833] New: warning: "ignoring packed attribute on unpacked non-POD field" on templates Dmitry dot Chepel at acronis dot com
2005-09-12 13:45 ` [Bug c++/23833] " Dmitry dot Chepel at acronis dot com
2005-09-12 13:46 ` Dmitry dot Chepel at acronis dot com
2005-09-12 13:47 ` Dmitry dot Chepel at acronis dot com
2005-09-13 20:17 ` pinskia at gcc dot gnu dot org
2005-09-18 2:06 ` 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).